Compare commits
2 Commits
6b392ab1e7
...
d90b9d40ef
| Author | SHA1 | Date | |
|---|---|---|---|
| d90b9d40ef | |||
| 99bf493b71 |
@@ -23,6 +23,9 @@ namespace AgraV2
|
||||
if (inputBmp == null)
|
||||
return null;
|
||||
|
||||
//This is important for when the user wants to re apply an effet
|
||||
ProcessingDuration = new List<double>();
|
||||
|
||||
Bitmap[] result = new Bitmap[] { useGetSetPixel(inputBmp), useByteArray(inputBmp), usePointers(inputBmp)};
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,12 @@ namespace AgraV2
|
||||
}
|
||||
public override Bitmap[] apply(Bitmap inputBmp)
|
||||
{
|
||||
if (inputBmp == null)
|
||||
return null;
|
||||
|
||||
//This is important for when the user wants to re apply an effet
|
||||
ProcessingDuration = new List<double>();
|
||||
|
||||
Bitmap[] result = new Bitmap[] { medianFilter(inputBmp) };
|
||||
return result;
|
||||
}
|
||||
@@ -80,7 +86,7 @@ namespace AgraV2
|
||||
List<int> Greens = 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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user