Package qupath.lib.images.writers.ome
Enum Class OMEPyramidWriter.CompressionType
java.lang.Object
java.lang.Enum<OMEPyramidWriter.CompressionType>
qupath.lib.images.writers.ome.OMEPyramidWriter.CompressionType
- All Implemented Interfaces:
- Serializable,- Comparable<OMEPyramidWriter.CompressionType>,- Constable
- Enclosing class:
- OMEPyramidWriter
Preferred compression type when using Bio-Formats.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionDefault (QuPath will select compression option based on image size and type, may be lossless or lossy).Lossless JPEG-2000 compression.Lossy JPEG-2000 compression.JPEG compression (only for single channel or RGB 8-bit images).LZW compression.No compression (faster to write, no loss of information, but large file sizes).ZLIB compression.
- 
Method SummaryModifier and TypeMethodDescriptionfromFriendlyString(String friendlyCompression) Get the CompressionType corresponding to the given inputgetOMEString(ImageServer<?> server) Get the String representation understood by OMETiffWriter.booleansupportsImage(ImageServer<?> server) Returns true if the compression type supports a specific image server, or false if it is incompatible.booleansupportsImage(PixelType pixelType, int nChannels, boolean isRGB) Returns true if the compression type supports a specificPixelTypeoutput with the given number of channels - and (optionally) RGB status.Get a friendlier string representationReturns the enum constant of this class with the specified name.static OMEPyramidWriter.CompressionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
UNCOMPRESSEDNo compression (faster to write, no loss of information, but large file sizes).
- 
DEFAULTDefault (QuPath will select compression option based on image size and type, may be lossless or lossy).
- 
JPEGJPEG compression (only for single channel or RGB 8-bit images).
- 
J2KLossless JPEG-2000 compression.
- 
J2K_LOSSYLossy JPEG-2000 compression.
- 
LZWLZW compression.
- 
ZLIBZLIB compression.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getOMEStringGet the String representation understood by OMETiffWriter.- Parameters:
- server- server that may be used if the type is- DEFAULT
- Returns:
 
- 
supportsImageReturns true if the compression type supports a specific image server, or false if it is incompatible. This may be due to bit-depth, number of channels etc.- Parameters:
- server-
- Returns:
 
- 
supportsImageReturns true if the compression type supports a specificPixelTypeoutput with the given number of channels - and (optionally) RGB status.- Parameters:
- pixelType-
- nChannels-
- isRGB-
- Returns:
 
- 
toFriendlyStringGet a friendlier string representation- Returns:
 
- 
fromFriendlyStringGet the CompressionType corresponding to the given input- Parameters:
- friendlyCompression-
- Returns:
 
 
-