From 0926896053824e8948eea36cec522e839d652059 Mon Sep 17 00:00:00 2001 From: Sebastian Dietz <151366475+ad33edub@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:30:05 +0100 Subject: [PATCH] correcting code in section 5.4 --- content/cannyedge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/cannyedge.md b/content/cannyedge.md index 4e50cc07..5232cb6e 100644 --- a/content/cannyedge.md +++ b/content/cannyedge.md @@ -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; }