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