Change 8-connectivity of pixels in an image to 4-connectivity

Viewed 878

I have a BW image containing a 8-Connected path

The image needs to be changed such that there is a 4-connectivity between the pixels, i.e. one can traverse the whole path without going diagonally.

This process needs to be done using morphological operations.

One possible output is this image. 4-Connected path

1 Answers
Related