Class QuantizeProcessor
java.lang.Object
nom.tam.fits.compression.algorithm.quant.QuantizeProcessor
- Direct Known Subclasses:
QuantizeProcessor.DoubleQuantCompressor, QuantizeProcessor.FloatQuantCompressor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classstatic classstatic classTODO this is done very inefficient and should be refactored!private classprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate final booleanprivate static final doubleprivate static final longnumber of reserved values, starting withprivate final QuantizeProcessor.PixelFilterprivate Quantizeprotected final QuantizeOptionprivate static final doubleprivate static final intvalue used to represent zero-valued pixels -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate intnint(double x) booleanvoidquantize(DoubleBuffer fdata, IntBuffer intData) voidunquantize(IntBuffer intData, DoubleBuffer fdata) private double
-
Field Details
-
MAX_INT_AS_DOUBLE
private static final double MAX_INT_AS_DOUBLE- See Also:
-
N_RESERVED_VALUES
private static final long N_RESERVED_VALUESnumber of reserved values, starting with- See Also:
-
ROUNDING_HALF
private static final double ROUNDING_HALF- See Also:
-
ZERO_VALUE
private static final int ZERO_VALUEvalue used to represent zero-valued pixels- See Also:
-
centerOnZero
private final boolean centerOnZero -
pixelFilter
-
bScale
private double bScale -
bZero
private double bZero -
quantize
-
quantizeOption
-
-
Constructor Details
-
QuantizeProcessor
-
-
Method Details
-
getQuantize
-
quantize
-
quantize
-
unquantize
-
calculateBZeroAndBscale
private void calculateBZeroAndBscale() -
nint
private int nint(double x) -
zeroCenter
private double zeroCenter()
-