How to extract images from groundTruth object?
Afficher commentaires plus anciens
Hello all,
is there a way to extract (i.e. saving as separate images) all the individual objects/regions which were defined as ROI label with the Image Labeler app. and stored within a groundTruth object? The aim is to apply some batch-modifications (e.g. contrast or rotation) to these images to achieve a better result of the cascade object detector.
Thank you for your help!
1 commentaire
Joel Borja
le 3 Déc 2019
I would like to find an answer to this too.
Réponses (2)
awezmm
le 3 Jan 2020
1 vote
Rummy18 and Joel,
You can import the labeled images and mask at different class labels. Each element in a labeled image matrix is a number representing which class a pixel in the original image belongs to.
If you want to apply rotations or contrast for some type of learning, check out data augmentation:
4 commentaires
Theresa Pflüger
le 20 Jan 2020
awezmm, thanks for your input but I do not quite understand what you mean.
I am also trying to find a way to extract the labeled ROI (bounding boxes) into single images which I can save separately.
So, what do you mean by "importing labeled images and mask at different class labels"? Can you please explain the way to go. Is there a code I need to write and run for the gTruth (my labeled ROI) to generate separate images?
Thanks in advance for any help!
awezmm
le 21 Jan 2020
Can you upload one of your label images here
Theresa Pflüger
le 21 Jan 2020
Sure!
Below you can see one example of my labeled images from the ImageLabeler App.
Just to be clear again, I would like to save the four stomata as four separate images.

awezmm
le 24 Jan 2020
Is this the actual labeled image? Can you please attach the labeled image after you export after labeling.
Rummy18
le 24 Jan 2020
1 commentaire
Jose Agustin Barrachina
le 28 Avr 2022
This is ALMOST what I need, but I have polygones and not rectangles... Any idea there?
Catégories
En savoir plus sur Point Cloud Processing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!