Documentation of 'boofcv.alg.filter.kernel.KernelMath' Java class
KernelMath
boofcv.alg.filter.kernel

Class KernelMath



  • public class KernelMath
    extends java.lang.Object
    • Constructor Detail

      • KernelMath

        public KernelMath()
    • Method Detail

      • scale

        public static void scale(Kernel1D_F32 kernel,
                                 float value)
      • scale

        public static void scale(Kernel1D_F64 kernel,
                                 double value)
      • divide

        public static void divide(Kernel1D_F32 kernel,
                                  float value)
      • divide

        public static void divide(Kernel1D_F64 kernel,
                                  double value)
      • divide

        public static void divide(Kernel2D_F32 kernel,
                                  float value)
      • divide

        public static void divide(Kernel2D_F64 kernel,
                                  double value)
      • fill

        public static void fill(Kernel2D_F32 kernel,
                                float value)
      • fill

        public static void fill(Kernel2D_I32 kernel,
                                int value)
      • convolve2D

        public static Kernel2D convolve2D(Kernel1D a,
                                          Kernel1D b)
        Convolve two 1D kernels together to form a 2D kernel.
        Parameters:
        a - Input vertical 1D kernel
        b - Input horizontal 1D kernel
        Returns:
        Resulting 2D kernel
      • convolve2D

        public static Kernel2D_F32 convolve2D(Kernel1D_F32 a,
                                              Kernel1D_F32 b)
        Convolve two 1D kernels together to form a 2D kernel.
        Parameters:
        a - Input vertical 1D kernel
        b - Input horizontal 1D kernel
        Returns:
        Resulting 2D kernel
      • convolve2D

        public static Kernel2D_F64 convolve2D(Kernel1D_F64 a,
                                              Kernel1D_F64 b)
        Convolve two 1D kernels together to form a 2D kernel.
        Parameters:
        a - Input vertical 1D kernel
        b - Input horizontal 1D kernel
        Returns:
        Resulting 2D kernel
      • convolve2D

        public static Kernel2D_I32 convolve2D(Kernel1D_I32 a,
                                              Kernel1D_I32 b)
        Convolve two 1D kernels together to form a 2D kernel.
        Parameters:
        a - Input vertical 1D kernel
        b - Input horizontal 1D kernel
        Returns:
        Resulting 2D kernel
      • normalizeSumToOne

        public static void normalizeSumToOne(Kernel1D_F32 kernel)
        Normalizes the array such that it sums up to one.
        Parameters:
        kernel - The kernel being normalized.
      • normalizeSumToOne

        public static void normalizeSumToOne(Kernel1D_F64 kernel)
      • normalizeSumToOne

        public static void normalizeSumToOne(Kernel2D_F32 kernel)
        Normalizes the array such that it sums up to one.
        Parameters:
        kernel - The kernel being normalized.
      • normalizeSumToOne

        public static void normalizeSumToOne(Kernel2D_F64 kernel)
      • normalizeAbsSumToOne

        public static void normalizeAbsSumToOne(Kernel2D_F32 kernel)
        Normalizes the array such that the absolute value sums up to one.
        Parameters:
        kernel - The kernel being normalized.
      • normalizeF

        public static void normalizeF(Kernel2D_F64 kernel)
      • normalizeMaxOne

        public static void normalizeMaxOne(Kernel2D_F64 kernel)
        Normalizes it such that the largest element is equal to one
      • convert

        public static void convert(float[] input,
                                   int[] output,
                                   int size,
                                   float minFrac)
      • convert

        public static void convert(double[] input,
                                   int[] output,
                                   int size,
                                   double minFrac)
      • maxAbs

        public static float maxAbs(float[] data,
                                   int size)
      • maxAbs

        public static double maxAbs(double[] data,
                                    int size)
      • minAbs

        public static float minAbs(float[] data,
                                   int size,
                                   float minValue)
      • minAbs

        public static double minAbs(double[] data,
                                    int size,
                                    double minValue)
      • isEqualsFrac

        public static boolean isEqualsFrac(float[] expected,
                                           float[] found,
                                           int size,
                                           float fracTol,
                                           float zero)
      • isEquals

        public static boolean isEquals(float[] expected,
                                       float[] found,
                                       int size,
                                       float tol)
      • isEquals

        public static boolean isEquals(int[] expected,
                                       int[] found,
                                       int size)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.