I have a set of images: on every one of them there is a variable number of cells. Lets say I focus now on picture pic1.jpg with n cells. I want to find an automatic way to generate pictures from pic1_1.jpg to pic1_n.jpg - each of them having only a separate cell. Obviously, later on I would like to write some sort of a wrapper (maybe in Python?) to do this for every picture.
Does anyone have an idea how to get such an automatic way of splitting image into variable number of regions?