public static class JPEG2000Format.Writer extends AbstractWriter<JPEG2000Format.Metadata>
| Constructor and Description |
|---|
Writer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoStacks()
Overridden to indicate that stacks are not supported.
|
byte[] |
compressBuffer(int imageIndex,
long planeIndex,
Plane plane,
net.imglib2.Interval bounds)
Compresses the buffer.
|
int[] |
getPixelTypes(String codec)
Overridden to return the formats supported by the writer.
|
protected String[] |
makeCompressionTypes() |
void |
writePlane(int imageIndex,
long planeIndex,
Plane plane,
net.imglib2.Interval bounds)
Helper method invoked by
AbstractWriter.savePlane(int, long, io.scif.Plane) to perform actual format-
specific output. |
checkLocation, checkParams, close, getCodecOptions, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getHandle, getMetadata, getValidBits, initialize, isInitialized, isSupportedCompression, isSupportedType, savePlane, savePlane, setColorModel, setDest, setDest, setDest, setDest, setDest, setDest, setDest, setDest, setMetadata, setMetadata, writeSequentialcloseasBrowsableLocation, asBrowsableLocation, getFormat, getFormatNamegetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationprotected String[] makeCompressionTypes()
makeCompressionTypes in class AbstractWriter<JPEG2000Format.Metadata>public void writePlane(int imageIndex,
long planeIndex,
Plane plane,
net.imglib2.Interval bounds)
throws FormatException,
IOException
AbstractWriterAbstractWriter.savePlane(int, long, io.scif.Plane) to perform actual format-
specific output.writePlane in class AbstractWriter<JPEG2000Format.Metadata>FormatExceptionIOExceptionpublic byte[] compressBuffer(int imageIndex,
long planeIndex,
Plane plane,
net.imglib2.Interval bounds)
throws FormatException,
IOException
imageIndex - the image index within the datasetplaneIndex - the plane index within the imageplane - the image tile being compressed.bounds - bounds of the planar axes.FormatException - if one of the parameters is invalid.IOException - if there was a problem writing to the file.public boolean canDoStacks()
canDoStacks in interface WritercanDoStacks in class AbstractWriter<JPEG2000Format.Metadata>Writer can save multiple images to a single
file.public int[] getPixelTypes(String codec)
getPixelTypes in interface WritergetPixelTypes in class AbstractWriter<JPEG2000Format.Metadata>Copyright © 2011–2026 SCIFIO. All rights reserved.