Morphological operations like thinning,  skeletonization, shrinking. And application of them to various cases like counting number of stars, skeletonising a dinosaur, counting number of walls, number of left right turns, in a PACMAN game.