protected static float [ ] createGaussianWeightKernel ( double sigma , int radius ) { Kernel2D_F32 ker = FactoryKernelGaussian . gaussian2D_F32 ( sigma , radius , false , false ) ; float maxValue = KernelMath . maxAbs ( ker . data , 4 * radius * radius ) ; KernelMath . divide ( ker , maxValue ) ; return ker . data ; }
Creates a gaussian weighting kernel with an even number of elements along its width