Package nom.tam.image.compression.hdu
Class CompressedImageData
java.lang.Object
nom.tam.fits.Data
nom.tam.fits.AbstractTableData
nom.tam.fits.BinaryTable
nom.tam.image.compression.hdu.CompressedImageData
- All Implemented Interfaces:
FitsElement
,TableData
-
Nested Class Summary
Nested classes/interfaces inherited from class nom.tam.fits.BinaryTable
BinaryTable.ColumnDesc, BinaryTable.SaveState
-
Field Summary
Fields inherited from class nom.tam.fits.Data
dataSize, fileOffset, input
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
fillHeader
(Header h) Update a FITS header to reflect the current state of the data.protected void
forceNoLoss
(int x, int y, int width, int heigth) protected <T extends ICompressOption>
TgetCompressOption
(Class<T> clazz) protected Buffer
protected void
prepareUncompressedData
(Object data, Header header) protected void
preserveNulls
(long nullValue, String compressionAlgorithm) preserve the null values in the image even if the compression algorithm is lossy.protected CompressedImageData
setAxis
(int[] axes) protected void
setCompressAlgorithm
(HeaderCard compressAlgorithmCard) protected void
setQuantAlgorithm
(HeaderCard quantAlgorithmCard) protected CompressedImageData
setTileSize
(int... axes) Methods inherited from class nom.tam.fits.BinaryTable
addByteVaryingColumn, addColumn, addFlattenedColumn, addRow, createColumnDataFor, createColumnTable, deleteColumns, deleteRows, getBases, getColumn, getData, getDimens, getElement, getFlatColumns, getFlattenedColumn, getHeapOffset, getHeapSize, getModelRow, getNCols, getNRows, getRawElement, getRow, getSizes, getTDims, getTrueSize, getTypes, read, readHeap, readTrueData, setColumn, setElement, setFlattenedColumn, setRow, updateAfterDelete, validColumn, validRow, write
Methods inherited from class nom.tam.fits.Data
getFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffset
-
Constructor Details
-
CompressedImageData
protected CompressedImageData() -
CompressedImageData
- Throws:
FitsException
-
-
Method Details
-
fillHeader
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 classBinaryTable
- Throws:
FitsException
-
compress
- Throws:
FitsException
-
forceNoLoss
protected void forceNoLoss(int x, int y, int width, int heigth) -
getCompressOption
-
getUncompressedData
- Throws:
FitsException
-
prepareUncompressedData
- Throws:
FitsException
-
preserveNulls
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 valuescompressionAlgorithm
- compression algorithm to use for the null pixel mask
-
setAxis
-
setCompressAlgorithm
-
setQuantAlgorithm
- Throws:
FitsException
-
setTileSize
- Throws:
FitsException
-