Zhang-Suen thinning algorithm: Difference between revisions

Content added Content deleted
Line 1,104: Line 1,104:
1 till(self columns - 1) do(:c)
1 till(self columns - 1) do(:c)
[
[
if(self~zhangsuenOp proceed(r,c,toWhite,firstStep))
if(self proceed(r,c,toWhite,firstStep))
[ hasChanged := true ].
[ hasChanged := true ].
].
].
Line 1,138: Line 1,138:
getAt(int i, int j)
getAt(int i, int j)
= image[i][j].
= image[i][j].
setAt(int i, int j, object o)
setAt(int i, int j, object o)
[
[
Line 1,144: Line 1,144:
]
]
}.
}.

grid thinImage.
grid thinImage.