IMPLEMENTATION OF THE FOUR CONNECTED ALGORITHM OF ROSENFELD FOR SKELETONIZATION


Notice that all changes in each step are done in an temporary array and then the result of these changes is copied in the first array. Then next step is executed in parallel on the result of the previouse step so steps 1 to 4 are done in sequense until no pixels are changed from black to white

Finally when the skeleton is obtained, the array will be copied in a file which is called "skelet.pbm".

The user can see the result by using "XV"

These are a few examples of executing the program :

The original pattern The skeleton of the pattern

The original pattern The skeleton of the pattern

The original pattern The skeleton of the pattern

The original pattern The skeleton of the pattern

We can see that four connected algorithm is noise sensitive and also it reserves the four connectivity of the skeleton of the pattern .

Home