Class HaarTransform

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class HaarTransform
    extends AlgorithmBase
    Author:
    ilb Reference: Digital Image Processing 4th Edition by Rafael C. Gonzalez and Richard E. Woods, Chapter 6.9, Haar Transform, pp. 490-492.
    • Constructor Detail

      • HaarTransform

        public HaarTransform()
      • HaarTransform

        public HaarTransform​(ModelImage transformImage,
                             ModelImage inverseImage,
                             ModelImage srcImg,
                             int filterType,
                             double filterVal1,
                             double filterVal2)
    • Method Detail

      • runAlgorithm

        public void runAlgorithm()
        Description copied from class: AlgorithmBase
        Actually runs the algorithm. Implemented by inheriting algorithms.
        Specified by:
        runAlgorithm in class AlgorithmBase
      • test1D

        public void test1D()
      • forward2D

        public void forward2D​(int yDim,
                              int xDim,
                              double[][] src,
                              double[][] dst)
      • inverse2D

        public void inverse2D​(int yDim,
                              int xDim,
                              double[][] src,
                              double[][] dst)
      • forward1D

        public double[] forward1D​(double[] arr)
      • inverse1D

        public double[] inverse1D​(double[] arr)
      • generateTransformationMatrix

        public void generateTransformationMatrix​(int N)
      • filter

        private void filter​(double[] data,
                            int filterType,
                            double filterVal1,
                            double filterVal2)
      • soft

        public double[] soft​(double[] data,
                             double value,
                             double substitute)
      • nn_garrote

        public double[] nn_garrote​(double[] data,
                                   double value,
                                   double substitute)
      • hard

        public double[] hard​(double[] data,
                             double value,
                             double substitute)
      • hard

        public double[][] hard​(double[][] data,
                               double value,
                               double substitute)
      • greater

        public double[] greater​(double[] data,
                                double value,
                                double substitute)
      • less

        public double[] less​(double[] data,
                             double value,
                             double substitute)
      • threshold_firm

        public double[] threshold_firm​(double[] data,
                                       double value_low,
                                       double value_high)