Skip to content

Commit

Permalink
correcting code in section 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ad33edub authored Jan 9, 2025
1 parent 80cc0d3 commit 0926896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/cannyedge.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ To avoid mistakes here, the following code, as well as the included `hasNeighbou
changed = false;
for (int x = 0; x < In.getWidth(); x++) {
for (int y = 0; y < In.getHeight(); y++) {
if (In.getPixelValue(x, y) >= tLow && hasNeighbours(Out, x, y) && Out.getPixel(x,y)==0) {
if (In.getPixelValue(x, y) > tLow && hasNeighbours(Out, x, y) && Out.getPixel(x,y)==0) {
Out.set(x, y, 255);
changed = true;
}
Expand Down

0 comments on commit 0926896

Please sign in to comment.