Exemple #1
0
        private static void ProcessConvolution(Bitmap image, string input)
        {
            var blur           = new ImageBlur(1);
            var edges          = new EdgeFinder();
            var convolvedImage = edges.DetectEdges(
                blur.BlurImage(image)
                );
            var output = input.Split('.');

            convolvedImage.Save($"{output[0]}_convolved.{output[1]}");
        }
Exemple #2
0
 public LaplacianOfGaussian(int kernelSize = 3)
 {
     edgeFinder      = new EdgeFinder();
     this.kernelSize = kernelSize;
     CalculateKernel();
 }