Class CompressedImageData

    • Field Detail

      • tiledImageOperation

        private TiledImageCompressionOperation tiledImageOperation
        tile information, only available during compressing or decompressing.
    • Constructor Detail

      • CompressedImageData

        protected CompressedImageData()
    • Method Detail

      • fillHeader

        public void fillHeader​(Header h)
                        throws FitsException
        Description copied from class: BinaryTable
        Update a FITS header to reflect the current state of the data. * @throws FitsException if the operation failed
        Overrides:
        fillHeader in class BinaryTable
        Parameters:
        h - header to fill with the data from the current data object
        Throws:
        FitsException - if the operation fails
      • forceNoLoss

        protected void forceNoLoss​(int x,
                                   int y,
                                   int width,
                                   int heigth)
      • getCompressOption

        protected <T extends ICompressOption> T getCompressOption​(java.lang.Class<T> clazz)
      • preserveNulls

        protected void preserveNulls​(long nullValue,
                                     java.lang.String compressionAlgorithm)
        preserve the null values in the image even if the compression algorithm is lossy.
        Parameters:
        nullValue - the value representing null for byte/short and integer pixel values
        compressionAlgorithm - compression algorithm to use for the null pixel mask
      • setCompressAlgorithm

        protected void setCompressAlgorithm​(HeaderCard compressAlgorithmCard)