Zhang-Suen thinning algorithm: Difference between revisions

Content added Content deleted
Line 192: Line 192:
=={{header|C}}==
=={{header|C}}==
Input and out images written from and to files. Format of input file is :
Input and out images written from and to files. Format of input file is :
----
<Rows> <Columns>
<Rows> <Columns>
<Blank pixel character> <Image Pixel character>
<Blank pixel character> <Image Pixel character>
<Image of specified rows and columns made up of the two pixel types specified in the second line.>
<Image of specified rows and columns made up of the two pixel types specified in the second line.>
----

The images before and after thinning are also printed on the console.
The images before and after thinning are also printed on the console.
<lang C>
<lang C>