Package ome.codecs
Class JPEG2000CodecOptions
java.lang.Object
ome.codecs.CodecOptions
ome.codecs.JPEG2000CodecOptions
Options for compressing and decompressing JPEG-2000 data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]The maximum code-block size to use per tile-component as it would be provided to:J2KImageWriteParam.setCodeBlockSize(int[])(WRITE).The number of decomposition levels as would be provided to:J2KImageWriteParam.setNumDecompositionLevels(int)(WRITE).The resolution level as would be provided to:J2KImageReadParam.setResolution(int)(READ).booleanWhether or not to write a boxed stream, i.e.Fields inherited from class ome.codecs.CodecOptions
bitsPerSample, channels, colorModel, disableChromaSubsampling, height, interleaved, littleEndian, lossless, maxBytes, previousImage, quality, signed, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width, ycbcr -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.JPEG2000CodecOptions(CodecOptions options) Creates a new instance with options. -
Method Summary
Modifier and TypeMethodDescriptionstatic JPEG2000CodecOptionsReturn JPEG2000CodecOptions with reasonable default values.static JPEG2000CodecOptionsgetDefaultOptions(CodecOptions options) Return JPEG2000CodecOptions using the given CodecOptions as the default.
-
Field Details
-
codeBlockSize
public int[] codeBlockSizeThe maximum code-block size to use per tile-component as it would be provided to:J2KImageWriteParam.setCodeBlockSize(int[])(WRITE). -
numDecompositionLevels
The number of decomposition levels as would be provided to:J2KImageWriteParam.setNumDecompositionLevels(int)(WRITE). Leaving this valuenullsignifies that when a JPEG 2000 parameter set is created for the purposes of compression the number of decomposition levels will be left as the default. -
resolution
The resolution level as would be provided to:J2KImageReadParam.setResolution(int)(READ). Leaving this valuenullsignifies that when a JPEG 2000 parameter set is created for the purposes of compression the number of decomposition levels will be left as the default. -
writeBox
public boolean writeBoxWhether or not to write a boxed stream, i.e. with SOC and SIZ markers. By default, a raw code stream is written.
-
-
Constructor Details
-
JPEG2000CodecOptions
public JPEG2000CodecOptions()Creates a new instance. -
JPEG2000CodecOptions
Creates a new instance with options.- Parameters:
options- The option to set.
-
-
Method Details
-
getDefaultOptions
Return JPEG2000CodecOptions with reasonable default values. -
getDefaultOptions
Return JPEG2000CodecOptions using the given CodecOptions as the default.- Parameters:
options- The specified options.
-