Skip to content

Commit f1de9b9

Browse files
Merge pull request #56 from yuripourre/patch-1
Fix typo in Maximum Filter
2 parents 64180a2 + d29ae07 commit f1de9b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Catalano.Image/src/Catalano/Imaging/Filters/Maximum.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void applyInPlace(FastBitmap sourceImage){
101101
for (int j = 0; j < lines; j++) {
102102
Yline = y + (j-radius);
103103
if ((Xline >= 0) && (Xline < height) && (Yline >=0) && (Yline < width)) {
104-
maxR = Math.max(maxG,copy.getRed(Xline, Yline));
104+
maxR = Math.max(maxR,copy.getRed(Xline, Yline));
105105
maxG = Math.max(maxG,copy.getGreen(Xline, Yline));
106106
maxB = Math.max(maxB,copy.getBlue(Xline, Yline));
107107
}
@@ -116,4 +116,4 @@ public void applyInPlace(FastBitmap sourceImage){
116116
private int CalcLines(int radius){
117117
return radius * 2 + 1;
118118
}
119-
}
119+
}

0 commit comments

Comments
 (0)