#include <Quantization.h>
Quantization parameters.
As opposed to CFITSIO, EleFits creates lossless algorithms by default, including for floating point values. Lossy compression has to be manually enabled by setting a non-null quantization level. The level can be set either globally, as a double, or tile-wise, relative to the noise level:
When quantization is enabled, dithering is applied by default to all pixels.
Public Types | |
enum class | Dithering { None , NonZeroPixel , EveryPixel } |
Quantization dithering methods. More... | |
Public Member Functions | |
Quantization () | |
Default, lossless compression constructor. | |
Quantization (Scaling level) | |
Level-based constructor. More... | |
Quantization (Scaling level, Dithering method) | |
Full constructor. | |
Dithering | dithering () const |
Get the dithering method for the quantization. | |
Quantization & | dithering (Dithering method) |
Set the dithering method. | |
const Scaling & | level () const |
Get the quantization level. | |
Quantization & | level (Scaling level) |
Set the quantization level. | |
operator bool () const | |
Check whether quantization is enabled. | |
bool | operator!= (const Quantization &rhs) const |
Check whether two quatizations are different. | |
bool | operator== (const Quantization &rhs) const |
Check whether two quatizations are equal. | |