Class AlgorithmWaveletFuse

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

    public class AlgorithmWaveletFuse
    extends AlgorithmBase
    MIT License Copyright (c) 2021 Hans Brouwer, Riyo Wanagiri 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: Image Fusion Using Wavelet Transform by Aggariyo Wanagiri and Hans Brouwer, Delft University of Technology. This is a port of wavelet_fuse.py and part of util.py.
    • Field Detail

      • kernel_size

        private int kernel_size
      • orders

        private int[] orders
      • max_depth

        private int max_depth
      • slow

        private boolean slow
      • numXColors

        private int numXColors
      • numYColors

        private int numYColors
      • numDestColors

        private int numDestColors
    • Constructor Detail

      • AlgorithmWaveletFuse

        public AlgorithmWaveletFuse()
    • 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
      • truncateArray

        private double[][] truncateArray​(double[][] imgBuf,
                                         int newXDim,
                                         int newYDim)
      • fuse

        private double[][][] fuse​(double[][][] img1,
                                  double[][][] img2,
                                  int ks,
                                  boolean slow)
      • majority_filter

        private boolean[][][] majority_filter​(boolean[][][] map,
                                              int ks)
      • slow_majority_filter

        private boolean[][][] slow_majority_filter​(boolean[][][] map,
                                                   int ks)
      • decision_map

        private boolean[][][] decision_map​(double[][][] img1,
                                           double[][][] img2,
                                           int ks)
      • slow_decision_map

        private boolean[][][] slow_decision_map​(double[][][] img1,
                                                double[][][] img2,
                                                int ks)