multichan16

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: BSD-3-Clause Imports: 16 Imported by: 2

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

View Source
const (
	Version  = "0.1"
	RepoURL  = "github.com/janelia-flyem/dvid/datatype/multichan16"
	TypeName = "multichan16"
)

Variables

View Source
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

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

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) Interpolable

func (c *Channel) Interpolable() bool

func (*Channel) NewChunkIndex

func (c *Channel) NewChunkIndex() dvid.ChunkIndexer

func (*Channel) NewIndexIterator

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

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

func (*Channel) String

func (c *Channel) String() string

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

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. Fulfills the datastore.PropertyCopier interface.

func (*Data) DoRPC

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

Do acts as a switchboard for RPC commands.

func (*Data) Equals

func (d *Data) Equals(d2 *Data) bool

func (*Data) GobDecode

func (d *Data) GobDecode(b []byte) error

func (*Data) GobEncode

func (d *Data) GobEncode() ([]byte, error)

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".

func (*Data) MarshalJSON

func (d *Data) MarshalJSON() ([]byte, error)

func (*Data) ServeHTTP

func (d *Data) ServeHTTP(uuid dvid.UUID, ctx *datastore.VersionedCtx, w http.ResponseWriter, r *http.Request) (activity map[string]interface{})

ServeHTTP handles all incoming HTTP requests for this data.

type Type

type Type struct {
	imageblk.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) Help

func (dtype *Type) Help() string

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)

Jump to

Keyboard shortcuts

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