Fixed median filter bug

This commit is contained in:
2022-09-14 19:55:47 +02:00
parent 6b392ab1e7
commit 99bf493b71
+1 -1
View File
@@ -80,7 +80,7 @@ namespace AgraV2
List<int> Greens = new List<int>(); List<int> Greens = new List<int>();
List<int> Reds = new List<int>(); List<int> Reds = new List<int>();
List<Point> surroundingPixels = getSurroundingPixels(new Point(x, y), 2, imgSize.Width, inputBmp.Height); List<Point> surroundingPixels = getSurroundingPixels(new Point(x, y), Radius, imgSize.Width, inputBmp.Height);
foreach (Point pixel in surroundingPixels) foreach (Point pixel in surroundingPixels)
{ {