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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionfromFriendlyString
(String friendlyCompression) Get the CompressionType corresponding to the given inputgetOMEString
(ImageServer<?> server) Get the String representation understood by OMETiffWriter.boolean
supportsImage
(ImageServer<?> server) Returns true if the compression type supports a specific image server, or false if it is incompatible.boolean
supportsImage
(PixelType pixelType, int nChannels, boolean isRGB) Returns true if the compression type supports a specificPixelType
output 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
-
UNCOMPRESSED
No compression (faster to write, no loss of information, but large file sizes). -
DEFAULT
Default (QuPath will select compression option based on image size and type, may be lossless or lossy). -
JPEG
JPEG compression (only for single channel or RGB 8-bit images). -
J2K
Lossless JPEG-2000 compression. -
J2K_LOSSY
Lossy JPEG-2000 compression. -
LZW
LZW compression. -
ZLIB
ZLIB compression.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
getOMEString
Get the String representation understood by OMETiffWriter.- Parameters:
server
- server that may be used if the type isDEFAULT
- Returns:
-
supportsImage
Returns 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:
-
supportsImage
Returns true if the compression type supports a specificPixelType
output with the given number of channels - and (optionally) RGB status.- Parameters:
pixelType
-nChannels
-isRGB
-- Returns:
-
toFriendlyString
Get a friendlier string representation- Returns:
-
fromFriendlyString
Get the CompressionType corresponding to the given input- Parameters:
friendlyCompression
-- Returns:
-