Class QuantizeProcessor

    • Field Detail

      • N_RESERVED_VALUES

        private static final long N_RESERVED_VALUES
        number of reserved values, starting with
        See Also:
        Constant Field Values
      • ZERO_VALUE

        private static final int ZERO_VALUE
        value used to represent zero-valued pixels
        See Also:
        Constant Field Values
      • centerOnZero

        private final boolean centerOnZero
      • bScale

        private double bScale
      • bZero

        private double bZero
    • Constructor Detail

      • QuantizeProcessor

        public QuantizeProcessor​(QuantizeOption quantizeOption)
    • Method Detail

      • getQuantize

        public Quantize getQuantize()
      • quantize

        public boolean quantize​(double[] doubles,
                                java.nio.IntBuffer quants)
      • quantize

        public void quantize​(java.nio.DoubleBuffer fdata,
                             java.nio.IntBuffer intData)
      • unquantize

        public void unquantize​(java.nio.IntBuffer intData,
                               java.nio.DoubleBuffer fdata)
      • calculateBZeroAndBscale

        private void calculateBZeroAndBscale()
      • nint

        private int nint​(double x)
      • zeroCenter

        private double zeroCenter()