# 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[ ]? Mar 5, 2016 at 8:03
• Welcome! Can you please elaborate? At the moment it is not clear what exactly you want to achieve. Mar 5, 2016 at 8:11
• Look up ComponentMeasurements and ImageTrim in the documentation. Mar 5, 2016 at 8:59
• @HayashiYoshiaki Look at this question Mar 5, 2016 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. Mar 5, 2016 at 9:01

SplitImage[image_] := Module[