Class NullPixelMaskRestorer
java.lang.Object
nom.tam.image.compression.tile.mask.AbstractNullPixelMask
nom.tam.image.compression.tile.mask.NullPixelMaskRestorer
(for internal use) Restores blank (
null
) values in
deccompressed images.- See Also:
-
Field Summary
Fields inherited from class nom.tam.image.compression.tile.mask.AbstractNullPixelMask
NULL_INDICATOR
-
Constructor Summary
ConstructorsConstructorDescriptionNullPixelMaskRestorer
(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl) Creates a new instance for restoring the null values to a specific image tile when decompressing the tile. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Restores the original blanking values in the decompressed image based on the null pixel mask that was stored along with the compressed data.Methods inherited from class nom.tam.image.compression.tile.mask.AbstractNullPixelMask
getCompressorControl, getMask, getMaskBytes, getNullValue, getTileBuffer, getTileIndex, initializedMask, setMask
-
Constructor Details
-
NullPixelMaskRestorer
public NullPixelMaskRestorer(TileBuffer tileBuffer, int tileIndex, long nullValue, ICompressorControl compressorControl) Creates a new instance for restoring the null values to a specific image tile when decompressing 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 decompresion of tiles, and which will be used to decompress the null pixel mask also.
-
-
Method Details
-
restoreNulls
public void restoreNulls()Restores the original blanking values in the decompressed image based on the null pixel mask that was stored along with the compressed data.
-