Jump to content

Zhang-Suen thinning algorithm: Difference between revisions

Replaced output.
(→‎{{header|Python}}: FIx inverted Vertical axis in calculation of neighbours and add dots in toTxt().)
(Replaced output.)
Line 458:
Just the example asked for in the task:
<pre>From:
................................
.######### .......######## .......
.### ...#### .....#### ..#### ......
.### ....### .....### ....### ......
.### ...#### .....### .............
.######### ......### .............
.### .#### .......### ....### ......
.### ..#### ..### .#### ..#### .### ..
.### ...#### .### ..######## ..### ..
................................
 
To thinned:
................................
..##### ##.........## ####........
..#.....#........##.............
# # ## ##
..#......#.......#..............
# # #
..#.....#........#..............
# # #
..#####.#........#..............
#### # #
.......##........#..............
# ### #
........#....#...##....##...#...
# # ##
.........#.........####.........
# # ###### #
................................</pre>
</pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.