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 class
private class
static class
static class
TODO this is done very inefficient and should be refactored!private class
private class
private class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
private double
private final boolean
private static final double
private static final long
number of reserved values, starting withprivate final QuantizeProcessor.PixelFilter
private Quantize
protected final QuantizeOption
private static final double
private static final int
value used to represent zero-valued pixels -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private int
nint
(double x) boolean
void
quantize
(DoubleBuffer fdata, IntBuffer intData) void
unquantize
(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()
-