public class V3dRawImageStream extends Object
Modifier and Type | Class and Description |
---|---|
static class |
V3dRawImageStream.Format
Three subformats of v3draw are understood.
|
Modifier and Type | Field and Description |
---|---|
static String[] |
V3DRAW_MAGIC_COOKIE
The first 24-bytes of a v3draw file declare the particular subformat
|
Constructor and Description |
---|
V3dRawImageStream(InputStream input)
Creates a new
V3dRawImageStream from a v3draw file. |
Modifier and Type | Method and Description |
---|---|
ByteOrder |
getByteOrder() |
org.janelia.vaa3d.reader.V3dRawImageStream.Slice |
getCurrentSlice() |
InputStream |
getDataInputStream() |
int |
getDimension(int index) |
int |
getPixelBytes() |
void |
loadNextSlice()
Replaces the current slice buffer with a new Z-slice of image data
from the input volume.
|
void |
writeHeader(OutputStream headerOutputStream,
V3dRawImageStream.Format v3dFormat) |
public static final String[] V3DRAW_MAGIC_COOKIE
public V3dRawImageStream(InputStream input)
V3dRawImageStream
from a v3draw file.
The v3draw file header is read from the InputStream during construction.input
- InputStream
representing the input v3draw volume image.public ByteOrder getByteOrder()
public InputStream getDataInputStream()
public int getDimension(int index)
index
- Zero(0) for x-axis, 1 for y-axis, 2 for z-axis, 3 for color channel.public int getPixelBytes()
public void writeHeader(OutputStream headerOutputStream, V3dRawImageStream.Format v3dFormat) throws IOException
IOException
public org.janelia.vaa3d.reader.V3dRawImageStream.Slice getCurrentSlice()
loadNextSlice
public void loadNextSlice() throws IOException
IOException
Copyright © 2015–2021 Fiji. All rights reserved.