Class NullPixelMaskPreserver
java.lang.Object
nom.tam.image.compression.tile.mask.AbstractNullPixelMask
nom.tam.image.compression.tile.mask.NullPixelMaskPreserver
(for internal use) Preserves blank (
null
) values in
compressed images. This class overwrites the pixels specified in the mask
with null values. Where the null value can be defined separately.- See Also:
-
Field Summary
Fields inherited from class nom.tam.image.compression.tile.mask.AbstractNullPixelMask
NULL_INDICATOR
-
Constructor Summary
ConstructorsConstructorDescriptionNullPixelMaskPreserver
(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl) Creates a new instance for preserving the null values in a specific image tile when compressing the tile. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates a compressed mask to store along with the compressed tile image to indicate where the blanking values appear in in the original image.Methods inherited from class nom.tam.image.compression.tile.mask.AbstractNullPixelMask
getCompressorControl, getMask, getMaskBytes, getNullValue, getTileBuffer, getTileIndex, initializedMask, setMask
-
Constructor Details
-
NullPixelMaskPreserver
public NullPixelMaskPreserver(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl) Creates a new instance for preserving the null values in a specific image tile when compressing the tile.- Parameters:
tileBuffer
- the buffer containing the serialized tile data (still uncompressed)tileIndex
- the sequential tile indexnullValue
- the blank value used in integer type images (this is ignored for floating-point images where NaN is used always)compressorControl
- the class that performs the compresion of tiles, and which will be used to compress the null pixel mask also.
-
-
Method Details
-
preserveNull
public void preserveNull()Creates a compressed mask to store along with the compressed tile image to indicate where the blanking values appear in in the original image.
-