Trying to automatically crop an image into several smaller images based on segmentation
Mostra commenti meno recenti
Hi all,
Apologies in advance, I'm not well versed in Matlab.
I'm trying to crop a segmented image into several smaller pieces that only contain the a segmented piece of the original image. For example, if an image has 3 apples and I'm interested in the apples, I am aiming to cut out each apple into a seperate image. The result I'm hoping for is 3 seperate images of apples, with anything else in the crop blackened (or whitened) out.
Why I'm trying to do this is so I can pass each resultant image into a CNN for analysis, as each segmented piece/cropped image is a type of object that needs to be classified.
Below is an image of mine that I'm trying to process. Any ideas would be useful! Thanks in advance.

8 Commenti
darova
il 17 Feb 2020
What about impoly?
Teshan Rezel
il 17 Feb 2020
darova
il 17 Feb 2020
What is format of the data? Please attach it
Teshan Rezel
il 17 Feb 2020
darova
il 17 Feb 2020
What about dilation?
- imdilate() image to close contours
- bwlabel() image to select separate regions
Teshan Rezel
il 17 Feb 2020
Modificato: Teshan Rezel
il 17 Feb 2020
darova
il 17 Feb 2020
Can you plot/draw green pixels (contours/boundaries) on clear image?

Teshan Rezel
il 17 Feb 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Region and Image Properties in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

