getting the coordinates of green colored portion.
Afficher commentaires plus anciens
i have an image. i have extracted out the green coloured portion from it. now i want the coordinates of that green area. how can i do that?
Réponse acceptée
Plus de réponses (1)
If you have matrix X of zeros and ones, where the ones mark the the pixels of the green object, you can extract its x and y coordinates using
[y, x] = find(X);
Catégories
En savoir plus sur Region and Image Properties dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!