public class CompressedImageData extends BinaryTable
BinaryTable.ColumnDesc, BinaryTable.SaveStatedataSize, fileOffset, input| Modifier | Constructor and Description |
|---|---|
protected |
CompressedImageData() |
protected |
CompressedImageData(Header hdr) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compress(CompressedImageHDU hdu) |
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> |
getCompressOption(Class<T> clazz) |
protected Buffer |
getUncompressedData(Header hdr) |
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) |
addColumn, addFlattenedColumn, addRow, 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, writegetFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffsetprotected CompressedImageData()
protected CompressedImageData(Header hdr) throws FitsException
FitsExceptionpublic void fillHeader(Header h) throws FitsException
BinaryTablefillHeader in class BinaryTableh - header to fill with the data from the current data objectFitsException - if the operation failsprotected void compress(CompressedImageHDU hdu) throws FitsException
FitsExceptionprotected void forceNoLoss(int x,
int y,
int width,
int heigth)
protected <T extends ICompressOption> T getCompressOption(Class<T> clazz)
protected Buffer getUncompressedData(Header hdr) throws FitsException
FitsExceptionprotected void prepareUncompressedData(Object data, Header header) throws FitsException
FitsExceptionprotected void preserveNulls(long nullValue,
String compressionAlgorithm)
nullValue - the value representing null for byte/short and integer pixel
valuescompressionAlgorithm - compression algorithm to use for the null pixel maskprotected CompressedImageData setAxis(int[] axes)
protected void setCompressAlgorithm(HeaderCard compressAlgorithmCard)
protected void setQuantAlgorithm(HeaderCard quantAlgorithmCard) throws FitsException
FitsExceptionprotected CompressedImageData setTileSize(int... axes) throws FitsException
FitsExceptionCopyright © 1996–2016 nom-tam-fits. All rights reserved.