public class CompressedImageHDU extends BinaryTableHDU
BITPIX_BYTE, BITPIX_DOUBLE, BITPIX_FLOAT, BITPIX_INT, BITPIX_LONG, BITPIX_SHORT, isPrimary, myData, myHeader
Constructor and Description |
---|
CompressedImageHDU(Header hdr,
CompressedImageData datum) |
Modifier and Type | Method and Description |
---|---|
ImageHDU |
asImageHDU() |
void |
compress() |
CompressedImageHDU |
forceNoLoss(int x,
int y,
int width,
int heigth)
Specify an areaWithin the image that will not undergo a lossy
compression.
|
static CompressedImageHDU |
fromImageHDU(ImageHDU imageHDU,
int... tileAxis)
Prepare a compressed image hdu for the specified image.
|
<T extends ICompressOption> |
getCompressOption(Class<T> clazz) |
CompressedImageData |
getData() |
Buffer |
getUncompressedData() |
boolean |
isHeader()
Check that this HDU has a valid header.
|
static boolean |
isHeader(Header hdr)
Check that this HDU has a valid header for this type.
|
static CompressedImageData |
manufactureData(Header hdr) |
CompressedImageHDU |
preserveNulls(String compressionAlgorithm)
preserve the null values in the image even if the compression algorithm
is lossy.
|
CompressedImageHDU |
setCompressAlgorithm(String compressAlgorithm) |
CompressedImageHDU |
setQuantAlgorithm(String quantAlgorithm) |
addColumn, columnKeyStems, encapsulate, info, isData, manufactureHeader, setComplexColumn, write
addRow, deleteColumnsIndexOne, deleteColumnsIndexOne, deleteColumnsIndexZero, deleteColumnsIndexZero, deleteRows, deleteRows, findColumn, getColumn, getColumn, getColumnFormat, getColumnMeta, getColumnName, getColumns, getElement, getNCols, getNRows, getRow, setColumn, setColumn, setColumnMeta, setColumnMeta, setColumnMeta, setColumnMeta, setColumnMeta, setColumnMeta, setColumnName, setCurrentColumn, setCurrentColumn, setElement, setRow
addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, card, getAuthor, getAxes, getBitPix, getBlankValue, getBScale, getBUnit, getBZero, getCreationDate, getDummyHDU, getEpoch, getEquinox, getFileOffset, getGroupCount, getHeader, getInstrument, getKernel, getMaximumValue, getMinimumValue, getObject, getObservationDate, getObserver, getOrigin, getParameterCount, getReference, getSize, getTelescope, getTrimmedString, getTrimmedString, read, reset, rewrite, rewriteable, saveReplaceCard
public CompressedImageHDU(Header hdr, CompressedImageData datum)
public static CompressedImageHDU fromImageHDU(ImageHDU imageHDU, int... tileAxis) throws FitsException
imageHDU
- the image to compresstileAxis
- the axis of the tiles in the imageFitsException
- if the image could not be used to create a compressed image.public static boolean isHeader(Header hdr)
hdr
- header to checktrue
if this HDU has a valid header.public static CompressedImageData manufactureData(Header hdr) throws FitsException
FitsException
public ImageHDU asImageHDU() throws FitsException
FitsException
public void compress() throws FitsException
FitsException
public CompressedImageHDU forceNoLoss(int x, int y, int width, int heigth)
x
- the x position in the imagey
- the y position in the imagewidth
- the width of the areaheigth
- the height of the areapublic <T extends ICompressOption> T getCompressOption(Class<T> clazz)
public CompressedImageData getData()
getData
in class BasicHDU<BinaryTable>
public Buffer getUncompressedData() throws FitsException
FitsException
public boolean isHeader()
isHeader
in class BinaryTableHDU
true
if this HDU has a valid header.public CompressedImageHDU preserveNulls(String compressionAlgorithm)
compressionAlgorithm
- compression algorithm to use for the null pixel maskpublic CompressedImageHDU setCompressAlgorithm(String compressAlgorithm) throws FitsException
FitsException
public CompressedImageHDU setQuantAlgorithm(String quantAlgorithm) throws FitsException
FitsException
Copyright © 1996–2016 nom-tam-fits. All rights reserved.