How to automatically crop and cut an image into several images using ImageMagick?
Let's say I have an image with four circles of slightly different shape like so:
O o o O
Is there a way to make ImageMagick automatically crop, cut and save the picture into four images like so:
Pic 1: O Pic 2: o Pic 3: o Pic 4: O
Update: I would prefer if an algorithm automatically figured out which parts of the image are most likely to belong together and crop accordingly. I think Inkscape has some kind of algorithm like that.