public class CompressedImageData extends BinaryTable
BinaryTable.ColumnDesc, BinaryTable.SaveState
dataSize, 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, write
getFileOffset, getKernel, getSize, reset, rewrite, rewriteable, setFileOffset
protected CompressedImageData()
protected CompressedImageData(Header hdr) throws FitsException
FitsException
public void fillHeader(Header h) throws FitsException
BinaryTable
fillHeader
in class BinaryTable
h
- header to fill with the data from the current data objectFitsException
- if the operation failsprotected void compress(CompressedImageHDU hdu) throws FitsException
FitsException
protected 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
FitsException
protected void prepareUncompressedData(Object data, Header header) throws FitsException
FitsException
protected 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
FitsException
protected CompressedImageData setTileSize(int... axes) throws FitsException
FitsException
Copyright © 1996–2016 nom-tam-fits. All rights reserved.