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".
NOTE: This data type has not been actively maintained and was writtern earlier to
Index ¶
- Constants
- Variables
- func CompositeEncodeFormat() dvid.DataValues
- type Channel
- type Data
- func (d *Data) CopyPropertiesFrom(src datastore.DataService, fs storage.FilterSpec) error
- func (d *Data) DoRPC(request datastore.Request, reply *datastore.Response) error
- func (d *Data) Equals(d2 *Data) bool
- func (d *Data) GobDecode(b []byte) error
- func (d *Data) GobEncode() ([]byte, error)
- func (d *Data) LoadLocal(request datastore.Request, reply *datastore.Response) error
- func (d *Data) MarshalJSON() ([]byte, error)
- func (d *Data) ServeHTTP(uuid dvid.UUID, ctx *datastore.VersionedCtx, w http.ResponseWriter, ...)
- type Type
- type V3DRawMarshaler
Constants ¶
const ( Version = "0.1" RepoURL = "github.com/janelia-flyem/dvid/datatype/multichan16" TypeName = "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 ¶
func CompositeEncodeFormat ¶
func CompositeEncodeFormat() dvid.DataValues
Types ¶
type Channel ¶
Channel is an image volume that fulfills the imageblk.ExtData 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 ¶
func (*Channel) NewChunkIndex ¶
func (c *Channel) NewChunkIndex() dvid.ChunkIndexer
type Data ¶
type Data struct { *imageblk.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) CopyPropertiesFrom ¶ added in v0.8.2
func (d *Data) CopyPropertiesFrom(src datastore.DataService, fs storage.FilterSpec) error
CopyPropertiesFrom copies the data instance-specific properties from a given data instance into the receiver's properties.
func (*Data) LoadLocal ¶
LoadLocal adds image data to a version node. See HelpMessage for example of command-line use of "load local".
func (*Data) MarshalJSON ¶
type Type ¶
Type just uses voxels data type by composition.
func NewType ¶
func NewType(values dvid.DataValues, interpolable bool) Type
NewType returns a pointer to a new voxels Type with default values set.
func (*Type) NewDataService ¶
func (dtype *Type) NewDataService(uuid dvid.UUID, id dvid.InstanceID, name dvid.InstanceName, c dvid.Config) (datastore.DataService, error)
NewDataService 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)