-
- All Implemented Interfaces:
HasFormat,HasSource,SCIFIOPlugin,TypedWriter<JPEG2000Format.Metadata>,Writer,Comparable<org.scijava.Prioritized>,org.scijava.Contextual,org.scijava.Identifiable,org.scijava.Locatable,org.scijava.log.Logged,org.scijava.plugin.HasPluginInfo,org.scijava.plugin.RichPlugin,org.scijava.plugin.SciJavaPlugin,org.scijava.Prioritized,org.scijava.Versioned
- Enclosing class:
- JPEG2000Format
public static class JPEG2000Format.Writer extends AbstractWriter<JPEG2000Format.Metadata>
-
-
Constructor Summary
Constructors Constructor Description Writer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDoStacks()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()voidwritePlane(int imageIndex, long planeIndex, Plane plane, net.imglib2.Interval bounds)Helper method invoked byAbstractWriter.savePlane(int, long, io.scif.Plane)to perform actual format- specific output.-
Methods inherited from class io.scif.AbstractWriter
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, writeSequential
-
Methods inherited from class io.scif.AbstractHasSource
close
-
Methods inherited from class io.scif.AbstractHasFormat
asBrowsableLocation, asBrowsableLocation, getFormat, getFormatName
-
Methods inherited from class io.scif.AbstractSCIFIOPlugin
getVersion, log
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface io.scif.HasFormat
getFormat, getFormatName
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier
-
Methods inherited from interface io.scif.SCIFIOPlugin
getVersion, log
-
-
-
-
Method Detail
-
makeCompressionTypes
protected String[] makeCompressionTypes()
- Specified by:
makeCompressionTypesin classAbstractWriter<JPEG2000Format.Metadata>- Returns:
- An array of compression types supported by this format. An empty array indicates no compression.
-
writePlane
public void writePlane(int imageIndex, long planeIndex, Plane plane, net.imglib2.Interval bounds) throws FormatException, IOExceptionDescription copied from class:AbstractWriterHelper method invoked byAbstractWriter.savePlane(int, long, io.scif.Plane)to perform actual format- specific output.- Specified by:
writePlanein classAbstractWriter<JPEG2000Format.Metadata>- Throws:
FormatExceptionIOException
-
compressBuffer
public byte[] compressBuffer(int imageIndex, long planeIndex, Plane plane, net.imglib2.Interval bounds) throws FormatException, IOExceptionCompresses the buffer.- Parameters:
imageIndex- the image index within the datasetplaneIndex- the plane index within the imageplane- the image tile being compressed.bounds- bounds of the planar axes.- Throws:
FormatException- if one of the parameters is invalid.IOException- if there was a problem writing to the file.
-
canDoStacks
public boolean canDoStacks()
Overridden to indicate that stacks are not supported.- Specified by:
canDoStacksin interfaceWriter- Overrides:
canDoStacksin classAbstractWriter<JPEG2000Format.Metadata>- Returns:
- True if this
Writercan save multiple images to a single file.
-
getPixelTypes
public int[] getPixelTypes(String codec)
Overridden to return the formats supported by the writer.- Specified by:
getPixelTypesin interfaceWriter- Overrides:
getPixelTypesin classAbstractWriter<JPEG2000Format.Metadata>
-
-