Class NonAveragingKernel

    • Constructor Detail

      • NonAveragingKernel

        @Deprecated
        protected NonAveragingKernel​(Kernel.EdgeHandlingStrategy strat)
        Deprecated.
        Empty constructor used by inheriting classes which are not able to provide a mask during first constructor call. The inheriting class promises to provide a mask and all checks by itself
        Parameters:
        strat - EdgeHandlingStrategy to use
      • NonAveragingKernel

        public NonAveragingKernel​(int width,
                                  int height)
      • NonAveragingKernel

        public NonAveragingKernel​(double[][] mask)
        Create a kernel with the given masks dimension. The masks acts as weight filter increasing or decreasing the weight of the value during convolution. For an example see the javadoc of the class.
        Parameters:
        mask - weight matrix used to judge which value is the maximum
    • Method Detail

      • computePotentialValues

        protected double[][] computePotentialValues​(byte[][] input,
                                                    int x,
                                                    int y)
      • computePotentialValues

        protected double[][] computePotentialValues​(int[][] input,
                                                    int x,
                                                    int y)
      • computePotentialValues

        protected double[][] computePotentialValues​(double[][] input,
                                                    int x,
                                                    int y)