Class AlgorithmGuidedFilter

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

    public class AlgorithmGuidedFilter
    extends AlgorithmBase
    The MIT License (MIT) Copyright (c) 2014 Atilim Cetin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Reference: K.He, J.Sun, and X.Tang. Guided Image Filtering. TPAMI'12. Original C++ source code by Atilim Cetin
    • Field Detail

      • yDim

        private int yDim
      • xDim

        private int xDim
      • length

        private int length
      • r

        private int r
      • eps

        private double eps
      • I

        private double[][] I
      • mean_I

        private double[][] mean_I
      • var_I

        private double[][] var_I
      • Ichannels

        private double[][][] Ichannels
      • mean_I_r

        private double[][] mean_I_r
      • mean_I_g

        private double[][] mean_I_g
      • mean_I_b

        private double[][] mean_I_b
      • invrr

        private double[][] invrr
      • invrg

        private double[][] invrg
      • invrb

        private double[][] invrb
      • invgg

        private double[][] invgg
      • invgb

        private double[][] invgb
      • invbb

        private double[][] invbb
    • Constructor Detail

      • AlgorithmGuidedFilter

        public AlgorithmGuidedFilter()
    • 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
      • GuidedFilterMono

        public void GuidedFilterMono()
      • filterSingleChannel

        private double[][] filterSingleChannel​(double[][] p)
      • GuidedFilterColor

        public void GuidedFilterColor()
      • filterSingleColorChannel

        private double[][] filterSingleColorChannel​(double[][] p)
      • mul

        private double[][] mul​(double[][] a,
                               double[][] b)
      • sub

        private double[][] sub​(double[][] a,
                               double[][] b)
      • add

        private double[][] add​(double[][] a,
                               double b)
      • add

        private double[][] add​(double[][] a,
                               double[][] b)
      • div

        private double[][] div​(double[][] a,
                               double[][] b)
      • copyMakeBorder

        public double[][] copyMakeBorder​(double[][] src,
                                         int top,
                                         int bottom,
                                         int left,
                                         int right,
                                         int borderType,
                                         double borderValue)
      • boxfilter

        private double[][] boxfilter​(double[][] img,
                                     int r)