public class CellH5Writer extends FormatWriter
Modifier and Type | Field and Description |
---|---|
private long |
bpp |
private JHDFService |
jhdf |
private String |
outputPath |
cm, compression, compressionTypes, fps, initialized, interleaved, metadataRetrieve, options, out, sequential, series, validBits
COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes
Constructor and Description |
---|
CellH5Writer() |
CellH5Writer(String format,
String[] exts) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDoStacks()
Reports whether the writer can save multiple images to a single file.
|
void |
close() |
int[] |
getPixelTypes(String codec)
Gets the supported pixel types for the given codec.
|
int |
getPlaneCount()
Retrieve the total number of planes in the current series.
|
void |
saveBytes(int no,
byte[] buf)
Saves the given image to the specified (possibly already open) file.
|
void |
saveBytes(int no,
byte[] buf,
int x,
int y,
int w,
int h)
Saves the given image tile to the current series in the current file.
|
void |
setId(String id)
Initializes a writer from the input file name.
|
changeOutputFile, checkParams, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPlaneCount, getSamplesPerPixel, getSamplesPerPixel, getSeries, isFullPlane, isInterleaved, isSupportedType, saveBytes, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setInterleaved, setMetadataRetrieve, setSeries, setValidBitsPerPixel, setWriteSequentially
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, isThisType, setMetadataOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, getNativeDataType, getSuffixes, isThisType
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
private transient JHDFService jhdf
private long bpp
private String outputPath
public void setId(String id) throws FormatException, IOException
FormatWriter
RandomAccessOutputStream
for the output
file and initializes the metadata for all the series using
FormatWriter.setSeries(int)
.setId
in interface IFormatHandler
setId
in class FormatWriter
id
- a String
specifying the path to the fileFormatException
IOException
public void saveBytes(int no, byte[] buf) throws IOException, FormatException
saveBytes
in interface IFormatWriter
saveBytes
in class FormatWriter
no
- the image index within the current file, starting from 0.buf
- the byte array that represents the image.IOException
- if there was a problem writing to the file.FormatException
- if one of the parameters is invalid.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FormatWriter
IOException
public int getPlaneCount()
FormatWriter
getPlaneCount
in class FormatWriter
public void saveBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException
IFormatWriter
no
- the image index within the current file, starting from 0.buf
- the byte array that represents the image tile.x
- the X coordinate of the upper-left corner of the image tile.y
- the Y coordinate of the upper-left corner of the image tile.w
- the width (in pixels) of the image tile.h
- the height (in pixels) of the image tile.FormatException
- if one of the parameters is invalid.IOException
- if there was a problem writing to the file.IFormatWriter.saveBytes(int, byte[], int, int, int, int)
public boolean canDoStacks()
IFormatWriter
canDoStacks
in interface IFormatWriter
canDoStacks
in class FormatWriter
public int[] getPixelTypes(String codec)
IFormatWriter
getPixelTypes
in interface IFormatWriter
getPixelTypes
in class FormatWriter
Copyright © 2016 Open Microscopy Environment