github.com/janelia-flyem/dvid@v1.0.0/datatype/imageblk/float32.go (about) 1 /* 2 Data type float32 tailors the image block data type for 32-bit float images. It simply 3 wraps the voxels package, setting Channels (1) and BytesPerValue(4). 4 */ 5 6 package imageblk 7 8 import ( 9 "github.com/janelia-flyem/dvid/datastore" 10 "github.com/janelia-flyem/dvid/dvid" 11 ) 12 13 var float32EncodeFormat dvid.DataValues 14 15 func init() { 16 float32EncodeFormat = dvid.DataValues{ 17 { 18 T: dvid.T_float32, 19 Label: "float32", 20 }, 21 } 22 interpolable := true 23 floatimg := NewType(float32EncodeFormat, interpolable) 24 floatimg.Type.Name = "float32blk" 25 floatimg.Type.URL = "github.com/janelia-flyem/dvid/datatype/imageblk/float32.go" 26 floatimg.Type.Version = "0.1" 27 28 datastore.Register(&floatimg) 29 }