8 public static partial class ConvolutionOperations
97 float d = -(KernelWidth - 1) * 0.5f;
101 s2 = 1.0f / (Sigma * Sigma * 2);
103 for (i = 0; i < KernelWidth; i++)
108 for (j = 0; j < KernelWidth; j++)
112 Kernel[i, j] = (float)Math.Exp(-(x2 + y * y) * s2);
Implements a Matrix, basic component for computations in Image Processing and Computer Vision.