Class SlantTransform

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

    public class SlantTransform
    extends AlgorithmBase
    One dimensional forward and inverse slant transforms are ported from FORATRAN programs in Appendix A of AD-767 758 Technical Report Slant Transform Image Coding by Wen-Hsiung Cheng of the University of Southern California, prepared for the Advanced Research Projects Agency, Air Force Eastern Test Range, May 1973.
    Author:
    ilb
    • Constructor Detail

      • SlantTransform

        public SlantTransform()
      • SlantTransform

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

      • forward1D

        public void forward1D​(int N,
                              double[][] C)
      • inverse1D

        public void inverse1D​(int N,
                              double[][] C)
      • runAlgorithm

        public void runAlgorithm()
        Description copied from class: AlgorithmBase
        Actually runs the algorithm. Implemented by inheriting algorithms.
        Specified by:
        runAlgorithm in class AlgorithmBase
      • 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)