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 ¶
const ( Version = "0.1" RepoUrl = "github.com/janelia-flyem/dvid/datatype/multichan16" )
const HelpMessage = `` /* 2359-byte string literal not displayed */
Variables ¶
var (
DefaultBlockSize int32 = 32
)
DefaultBlockMax specifies the default size for each block of this data type.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
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 ¶
IndexIterator returns an iterator that can move across the voxel geometry, generating indices or index spans.
func (*Channel) Interpolable ¶
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) JSONString ¶
JSONString returns the JSON for this Data's configuration
type Datatype ¶
Datatype just uses voxels data type by composition.
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)