How can i extract a set of data if the corner points are known(not square) from a large matrix?
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 an image and using impoly image handle i can draw a polygon and get the x and y coordinates of the corner points.It is not a square or a rectangle. My aim is to extract the values coming within this region from a bigger matrix. I have attached an image from which a polygon is shown. i use polygon only to get the coordinates, but my matrix is another one.Please help me out.
0 commentaires
Réponse acceptée
Image Analyst
le 13 Fév 2014
Create the mask with the .createMask method of the object returned by impoly(), then extract the values
pixelsInsidePoly = redChannel(mask); % Repeat for green and blue channels.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!