Thinning is used to reduce each connected component in a binary image to a single-pixel wide skeleton
image – binary image with 0 or 255
skeleton of a binary image.