Zhang-Suen thinning algorithm: Difference between revisions

Content added Content deleted
m (Additional data and result appended)
mNo edit summary
Line 57: Line 57:


;Step 1:
;Step 1:
All pixels are tested and pixels satisfying all the following conditions are just noted at this stage.
All pixels are tested and pixels satisfying all the following conditions (simultaneously) are just noted at this stage.
* (0) The pixel is black and has eight neighbours
* (0) The pixel is black and has eight neighbours
* (1) <math>2 <= B(P1) <= 6</math>
* (1) <math>2 <= B(P1) <= 6</math>