Class HDecompress
- java.lang.Object
-
- nom.tam.fits.compression.algorithm.hcompress.HDecompress
-
public class HDecompress extends java.lang.Object
The original decompression code was written by R. White at the STScI and included (ported to c and adapted) in cfitsio by William Pence, NASA/GSFC. That code was then ported to java by R. van Nieuwenhoven. Later it was massively refactored to harmonize the different compression algorithms and reduce the duplicate code pieces without obscuring the algorithm itself as far as possible. The original site for the algorithm is- Author:
- Richard White, William Pence, Richard van Nieuwenhoven
- See Also:
- http://www.stsci.edu/software/hcompress.html
-
-
Constructor Summary
Constructors Constructor Description HDecompress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decompress(java.nio.ByteBuffer input, boolean smooth, long[] aa)
decompress the input byte stream using the H-compress algorithm input - input tiledImageOperation of compressed bytes a - pre-allocated tiledImageOperation to hold the output uncompressed image nx - returned X axis size ny - returned Y axis size NOTE: the nx and ny dimensions as defined within this code are reversed from the usual FITS notation.
-
-
-
Method Detail
-
decompress
public void decompress(java.nio.ByteBuffer input, boolean smooth, long[] aa)
decompress the input byte stream using the H-compress algorithm input - input tiledImageOperation of compressed bytes a - pre-allocated tiledImageOperation to hold the output uncompressed image nx - returned X axis size ny - returned Y axis size NOTE: the nx and ny dimensions as defined within this code are reversed from the usual FITS notation. ny is the fastest varying dimension, which is usually considered the X axis in the FITS image display- Parameters:
input
- the input buffer to decompresssmooth
- should the image be smoothedaa
- the resulting long tiledImageOperation
-
-