how to set region inside roi (polygon) to 1.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nithya
le 13 Fév 2014
Réponse apportée : Image Analyst
le 13 Fév 2014
I have a polygon drawn on an image using impoly. I want to set the region inside the polygon to 1. Can it be done. Please help me. Nithya
0 commentaires
Réponse acceptée
Image Analyst
le 13 Fév 2014
If you have the Image Processing Toolbox, you can use the poly2mask() function to do that
[rows, columns, numberOfColorChannels] = size(yourImage);
binaryMask = poly2mask(x, y, rows, columns);
0 commentaires
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!