Class NullPixelMaskPreserver

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

public class NullPixelMaskPreserver extends AbstractNullPixelMask
(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:
  • 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 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 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.