Zhang-Suen thinning algorithm: Difference between revisions

Content added Content deleted
m (→‎{{header|Java}}: small change)
m (→‎{{header|Java}}: avoid confusion)
Line 885: Line 885:
continue;
continue;


toWhite.add(new Point(r, c));
toWhite.add(new Point(c, r));
hasChanged = true;
hasChanged = true;
}
}
Line 891: Line 891:


for (Point p : toWhite)
for (Point p : toWhite)
grid[p.x][p.y] = ' ';
grid[p.y][p.x] = ' ';
toWhite.clear();
toWhite.clear();