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 BinaryTable
BinaryTable.ColumnDesc, BinaryTable.SaveState -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TiledImageCompressionOperationtile information, only available during compressing or decompressing.Fields inherited from class Data
dataSize, fileOffset, input -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidfillHeader(Header h) Update a FITS header to reflect the current state of the data.protected voidforceNoLoss(int x, int y, int width, int heigth) protected <T extends ICompressOption>
TgetCompressOption(Class<T> clazz) protected Bufferprotected voidprepareUncompressedData(Object data, Header header) protected voidpreserveNulls(long nullValue, String compressionAlgorithm) preserve the null values in the image even if the compression algorithm is lossy.protected CompressedImageDatasetAxis(int[] axes) protected voidsetCompressAlgorithm(HeaderCard compressAlgorithmCard) protected voidsetQuantAlgorithm(HeaderCard quantAlgorithmCard) protected CompressedImageDatasetTileSize(int... axes) private TiledImageCompressionOperationMethods inherited from class 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, writeMethods inherited from class Data
getFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffset
-
Field Details
-
tiledImageOperation
tile information, only available during compressing or decompressing.
-
-
Constructor Details
-
CompressedImageData
protected CompressedImageData() -
CompressedImageData
- Throws:
FitsException
-
-
Method Details
-
fillHeader
Description copied from class:BinaryTableUpdate a FITS header to reflect the current state of the data. * @throws FitsException if the operation failed- Overrides:
fillHeaderin classBinaryTable- Throws:
FitsException
-
tiledImageOperation
-
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
-