Class NullPixelMaskRestorer

java.lang.Object
nom.tam.image.compression.tile.mask.AbstractNullPixelMask
nom.tam.image.compression.tile.mask.NullPixelMaskRestorer

public class NullPixelMaskRestorer extends AbstractNullPixelMask
(for internal use) Restores blank (null) values in deccompressed images.
See Also:
  • 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 index
      nullValue - 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.