# Can I split an image into subparts automatically?

I want to extract subimages from an image like below. There are 6 components in the image, I want to crop this image into 6 images in a way each individual image contain only 1 component. Can I automatically do it by Mathematica?

• ImagePartition[ ] or MorphologicalComponents[ ]? – Dr. belisarius Mar 5 '16 at 8:03
• Welcome! Can you please elaborate? At the moment it is not clear what exactly you want to achieve. – Yves Klett Mar 5 '16 at 8:11
• Look up ComponentMeasurements and ImageTrim in the documentation. – Niki Estner Mar 5 '16 at 8:59
• @HayashiYoshiaki Look at this question – martin Mar 5 '16 at 9:00
• There are 6 components in the image, I want to crop this image into 6 images in a way each individual image contain only 1 component. – Hayashi Yoshiaki Mar 5 '16 at 9:01

SplitImage[image_] := Module[