Class QuantizeOption
java.lang.Object
nom.tam.fits.compression.algorithm.quant.QuantizeOption
- All Implemented Interfaces:
Cloneable
,ICompressOption
- Direct Known Subclasses:
HCompressorQuantizeOption
,RiceQuantizeCompressOption
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
getBNull()
double
double
getBZero()
<T> T
getCompressOption
(Class<T> clazz) int
int
double
double
double
double
long
getSeed()
int
int
boolean
boolean
boolean
boolean
isDither()
boolean
boolean
setBScale
(double value) setBZero
(double value) setCenterOnZero
(boolean value) setCheckNull
(boolean value) setCheckZero
(boolean value) setDither
(boolean value) setDither2
(boolean value) setIntMaxValue
(int value) setIntMinValue
(int value) setMaxValue
(double value) setMinValue
(double value) setNullValue
(double value) void
setParameters
(ICompressParameters parameters) set the parameters that must be synchronized with the hdu meta data.setQlevel
(double value) setSeed
(long value) setTileHeight
(int value) set the tile height in pixel.setTileWidth
(int value) set the tile width.<T> T
un wrap a specific implementation detail.
-
Field Details
-
parameters
-
-
Constructor Details
-
QuantizeOption
public QuantizeOption()
-
-
Method Details
-
copy
- Specified by:
copy
in interfaceICompressOption
- Returns:
- copy the option (normally the option from with the copy happened is saved as original).
-
getBNull
-
getBScale
public double getBScale() -
getBZero
public double getBZero() -
getCompressionParameters
- Specified by:
getCompressionParameters
in interfaceICompressOption
- Returns:
- the parameters that must be synchronized with the hdu meta data.
-
getCompressOption
-
getIntMaxValue
public int getIntMaxValue() -
getIntMinValue
public int getIntMinValue() -
getMaxValue
public double getMaxValue() -
getMinValue
public double getMinValue() -
getNullValue
public double getNullValue() -
getNullValueIndicator
-
getOriginal
-
getQLevel
public double getQLevel() -
getSeed
public long getSeed() -
getTileHeight
public int getTileHeight() -
getTileWidth
public int getTileWidth() -
isCenterOnZero
public boolean isCenterOnZero() -
isCheckNull
public boolean isCheckNull() -
isCheckZero
public boolean isCheckZero() -
isDither
public boolean isDither() -
isDither2
public boolean isDither2() -
isLossyCompression
public boolean isLossyCompression()- Specified by:
isLossyCompression
in interfaceICompressOption
- Returns:
- true if the compression done with this specified options uses approximations. That means if the reconstruction of the data is excact the return should be false.
-
setBNull
-
setBScale
-
setBZero
-
setCenterOnZero
-
setCheckNull
-
setCheckZero
-
setDither
-
setDither2
-
setIntMaxValue
-
setIntMinValue
-
setMaxValue
-
setMinValue
-
setNullValue
-
setParameters
Description copied from interface:ICompressOption
set the parameters that must be synchronized with the hdu meta data.- Specified by:
setParameters
in interfaceICompressOption
- Parameters:
parameters
- the parameters to synchronized
-
setQlevel
-
setSeed
-
setTileHeight
Description copied from interface:ICompressOption
set the tile height in pixel.- Specified by:
setTileHeight
in interfaceICompressOption
- Parameters:
value
- the number of pixel.- Returns:
- this (builder pattern)
-
setTileWidth
Description copied from interface:ICompressOption
set the tile width.- Specified by:
setTileWidth
in interfaceICompressOption
- Parameters:
value
- the number of pixel.- Returns:
- this (builder pattern)
-
unwrap
Description copied from interface:ICompressOption
un wrap a specific implementation detail.- Specified by:
unwrap
in interfaceICompressOption
- Type Parameters:
T
- the class to unrwap- Parameters:
clazz
- the type to unwrap- Returns:
- the implementation detail or null if no such detail is avalable.
-