public static class TIFFFormat.Writer<M extends TIFFFormat.Metadata> extends AbstractWriter<M>
NB: BigTIFF writing can be controlled via the setBigTiff(boolean)
method, or by passing a SCIFIOConfig with a key of
BIG_TIFF_KEY paired to the desired value. If not explicitly
turned on or off, BigTIFF will be written if the output dataset is larger
than 2GB in size.
| Modifier and Type | Field and Description |
|---|---|
static String |
BIG_TIFF_KEY |
static String |
COMPRESSION_J2K |
static String |
COMPRESSION_J2K_LOSSY |
static String |
COMPRESSION_JPEG |
static String |
COMPRESSION_LZW |
static String |
COMPRESSION_UNCOMPRESSED |
static String |
COMPRESSION_ZLIB |
| Constructor and Description |
|---|
Writer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDoStacks() |
void |
close()
Closes the image source(s) associated with this component and resets the
component to its default state.
|
int[] |
getPixelTypes(String codec)
Gets the supported pixel types for the given codec.
|
protected void |
initialize(int imageIndex,
long planeIndex,
net.imglib2.Interval bounds)
Ensures this writer is prepared to write the given plane of the given
image.
|
boolean |
isBigTiff() |
protected String[] |
makeCompressionTypes() |
void |
savePlane(int imageIndex,
long planeIndex,
Plane plane,
IFD ifd,
net.imglib2.Interval bounds)
Saves the given image to the specified series in the current file.
|
void |
setBigTiff(boolean bigTiff)
Sets whether or not BigTIFF files should be written.
|
void |
setDest(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> dest,
int imageIndex,
SCIFIOConfig config)
As
Writer.setDest(DataHandle, int), with specification for new
configuration options. |
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, isInitialized, isSupportedCompression, isSupportedType, savePlane, savePlane, setColorModel, setDest, setDest, setDest, setDest, setDest, setDest, setDest, setMetadata, setMetadata, writeSequentialasBrowsableLocation, asBrowsableLocation, getFormat, getFormatNamegetVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFormat, getFormatNamegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic static final String COMPRESSION_UNCOMPRESSED
public static final String COMPRESSION_LZW
public static final String COMPRESSION_ZLIB
public static final String COMPRESSION_J2K
public static final String COMPRESSION_J2K_LOSSY
public static final String COMPRESSION_JPEG
public static final String BIG_TIFF_KEY
protected String[] makeCompressionTypes()
makeCompressionTypes in class AbstractWriter<M extends TIFFFormat.Metadata>public void setBigTiff(boolean bigTiff)
public boolean isBigTiff()
public void savePlane(int imageIndex,
long planeIndex,
Plane plane,
IFD ifd,
net.imglib2.Interval bounds)
throws IOException,
FormatException
IOExceptionFormatExceptionprotected void initialize(int imageIndex,
long planeIndex,
net.imglib2.Interval bounds)
throws FormatException,
IOException
AbstractWriterinitialize in class AbstractWriter<M extends TIFFFormat.Metadata>FormatExceptionIOExceptionpublic void setDest(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> dest, int imageIndex, SCIFIOConfig config) throws FormatException, IOException
WriterWriter.setDest(DataHandle, int), with specification for new
configuration options.setDest in interface WritersetDest in class AbstractWriter<M extends TIFFFormat.Metadata>dest - The image source to write to.imageIndex - The index within the source that will be written.config - Configuration information to use for this write.FormatExceptionIOExceptionpublic 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<M extends TIFFFormat.Metadata>FormatExceptionIOExceptionpublic boolean canDoStacks()
canDoStacks in interface WritercanDoStacks in class AbstractWriter<M extends TIFFFormat.Metadata>Writer can save multiple images to a single
file.public int[] getPixelTypes(String codec)
WritergetPixelTypes in interface WritergetPixelTypes in class AbstractWriter<M extends TIFFFormat.Metadata>public void close()
throws IOException
HasSource
Equivalent to calling close(false).
close in interface HasSourceclose in class AbstractHasSourceIOExceptionCopyright © 2011–2026 SCIFIO. All rights reserved.