Package ome.io.bioformats
Class OmeroPixelsPyramidWriter
- java.lang.Object
-
- loci.formats.FormatHandler
-
- loci.formats.FormatWriter
-
- loci.formats.out.TiffWriter
-
- ome.io.bioformats.OmeroPixelsPyramidWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,loci.formats.ICompressedTileWriter,loci.formats.IFormatHandler,loci.formats.IFormatWriter,loci.formats.IMetadataConfigurable,loci.formats.IPyramidHandler
public class OmeroPixelsPyramidWriter extends loci.formats.out.TiffWriterFile format writer for OMERO pixels pyramid files.- Since:
- Beta4.3
-
-
Field Summary
Fields Modifier and Type Field Description static intIFD_TAG_PLANE_NUMBERTIFF tag we're using to store the Bio-Formats plane number.static intIFD_TAG_SERIESTIFF tag we're using to store the Bio-Formats series.static java.lang.StringIMAGE_DESCRIPTIONCurrent TIFF image comment for OMERO pixels pyramid TIFFs.-
Fields inherited from class loci.formats.out.TiffWriter
canDetectBigTiff, checkParams, COMPRESSION_J2K, COMPRESSION_J2K_LOSSY, COMPRESSION_JPEG, COMPRESSION_LZW, COMPRESSION_UNCOMPRESSED, COMPRESSION_ZLIB, in, isBigTiff, tiffSaver, tileSizeX, tileSizeY
-
-
Constructor Summary
Constructors Constructor Description OmeroPixelsPyramidWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidpostProcess()Performs re-compression post processing on the pixel pyramid.protected voidrecompressSeries(loci.formats.in.TiffReader source, int series)Re-compresses a source series, that is JPEG 2000 compressed, via its resolution level.voidsetId(java.lang.String id)-
Methods inherited from class loci.formats.out.TiffWriter
canDoStacks, createInputStream, createTiffSaver, getCodec, getPixelTypes, getPlaneCount, getTileSizeX, getTileSizeY, makeIFD, prepareToWriteImage, saveBytes, saveBytes, saveBytes, saveCompressedBytes, setBigTiff, setCanDetectBigTiff, setTileSizeX, setTileSizeY, setupTiffSaver
-
Methods inherited from class loci.formats.FormatWriter
changeOutputFile, checkParams, createOutputStream, getCodecOptions, getColorModel, getCompression, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPlaneCount, getResolution, getResolutionCount, getResolutions, getSamplesPerPixel, getSamplesPerPixel, getSeries, getSizeX, getSizeY, hasResolutions, isFullPlane, isInterleaved, isSupportedType, saveBytes, saveBytes, savePlane, savePlane, savePlane, seekToPlaneOffset, setCodecOptions, setColorModel, setCompression, setFramesPerSecond, setInterleaved, setMetadataRetrieve, setResolution, setResolutions, setSeries, setValidBitsPerPixel, setWriteSequentially
-
Methods inherited from class loci.formats.FormatHandler
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, isThisType, setMetadataOptions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
IMAGE_DESCRIPTION
public static final java.lang.String IMAGE_DESCRIPTION
Current TIFF image comment for OMERO pixels pyramid TIFFs.- See Also:
- Constant Field Values
-
IFD_TAG_SERIES
public static final int IFD_TAG_SERIES
TIFF tag we're using to store the Bio-Formats series.- See Also:
- Constant Field Values
-
IFD_TAG_PLANE_NUMBER
public static final int IFD_TAG_PLANE_NUMBER
TIFF tag we're using to store the Bio-Formats plane number.- See Also:
- Constant Field Values
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classloci.formats.out.TiffWriter- Throws:
java.io.IOException
-
setId
public void setId(java.lang.String id) throws loci.formats.FormatException, java.io.IOException- Specified by:
setIdin interfaceloci.formats.IFormatHandler- Overrides:
setIdin classloci.formats.out.TiffWriter- Throws:
loci.formats.FormatExceptionjava.io.IOException
-
postProcess
protected void postProcess() throws java.io.IOException, loci.formats.FormatExceptionPerforms re-compression post processing on the pixel pyramid.- Throws:
java.io.IOExceptionloci.formats.FormatException
-
recompressSeries
protected void recompressSeries(loci.formats.in.TiffReader source, int series) throws loci.formats.FormatException, java.io.IOExceptionRe-compresses a source series, that is JPEG 2000 compressed, via its resolution level.- Parameters:
source- Reader created of ourselves.series- Target series for the re-compressed data which is the inverse of the source resolution level.- Throws:
loci.formats.FormatExceptionjava.io.IOException
-
-