multichan16

package
v0.0.0-...-e545f54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2014 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package multichan16 tailors the voxels data type for 16-bit fluorescent images with multiple channels that can be read from V3D Raw format. Note that this data type has multiple channels but segregates its channel data in (c, z, y, x) fashion rather than interleave it within a block of data in (z, y, x, c) fashion. There is not much advantage at using interleaving; most forms of RGB compression fails to preserve the independence of the channels. Segregating the channel data lets us use straightforward compression on channel slices.

Specific channels of multichan16 data are addressed by adding a numerical suffix to the data name. For example, if we have "mydata" multichan16 data, we reference channel 1 as "mydata1" and channel 2 as "mydata2". Up to the first 3 channels are composited into a RGBA volume that is addressible using "mydata" or "mydata0".

Index

Constants

View Source
const (
	Version = "0.1"
	RepoUrl = "github.com/janelia-flyem/dvid/datatype/multichan16"
)
View Source
const HelpMessage = `` /* 2359-byte string literal not displayed */

Variables

View Source
var (
	DefaultBlockSize int32 = 32
)

DefaultBlockMax specifies the default size for each block of this data type.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	*voxels.Voxels
	// contains filtered or unexported fields
}

Channel is an image volume that fulfills the voxels.ExtHandler interface.

func (*Channel) Index

func (c *Channel) Index(p dvid.ChunkPoint) dvid.Index

Index returns a channel-specific Index

func (*Channel) IndexIterator

func (c *Channel) IndexIterator(chunkSize dvid.Point) (dvid.IndexIterator, error)

IndexIterator returns an iterator that can move across the voxel geometry, generating indices or index spans.

func (*Channel) Interpolable

func (c *Channel) Interpolable() bool

func (*Channel) String

func (c *Channel) String() string

type Data

type Data struct {
	voxels.Data

	// Number of channels for this data.  The names are referenced by
	// adding a number onto the data name, e.g., mydata1, mydata2, etc.
	NumChannels int
}

Data of multichan16 type embeds voxels and extends it with channels.

func (*Data) DoHTTP

func (d *Data) DoHTTP(uuid dvid.UUID, w http.ResponseWriter, r *http.Request) error

DoHTTP handles all incoming HTTP requests for this dataset.

func (*Data) DoRPC

func (d *Data) DoRPC(request datastore.Request, reply *datastore.Response) error

Do acts as a switchboard for RPC commands.

func (*Data) JSONString

func (d *Data) JSONString() (string, error)

JSONString returns the JSON for this Data's configuration

func (*Data) LoadLocal

func (d *Data) LoadLocal(request datastore.Request, reply *datastore.Response) error

LoadLocal adds image data to a version node. See HelpMessage for example of command-line use of "load local".

type Datatype

type Datatype struct {
	*voxels.Datatype
}

Datatype just uses voxels data type by composition.

func (*Datatype) Help

func (dtype *Datatype) Help() string

func (*Datatype) NewDataService

func (dtype *Datatype) NewDataService(id *datastore.DataID, config dvid.Config) (
	datastore.DataService, error)

NewData returns a pointer to a new multichan16 with default values.

type V3DRawMarshaler

type V3DRawMarshaler struct{}

func (V3DRawMarshaler) UnmarshalV3DRaw

func (V3DRawMarshaler) UnmarshalV3DRaw(reader io.Reader) ([]*Channel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL