
how to extract x and y coordinates within yellow boundary in an image
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ahmad Ridzuan Kudus
le 6 Juil 2018
Réponse apportée : Akira Agata
le 13 Juil 2018
Hi. Here I have an image with yellow boundary as salient region (attached image). How can I extract the ordered list of x and y coordinates within the yellow region from the image?
Thank you in advance.
0 commentaires
Réponse acceptée
Akira Agata
le 13 Juil 2018
How about the following?
I = imread('untitled.jpg');
Ilab = rgb2lab(I);
BW = Ilab(:,:,3) > 25;
se = strel('disk',20);
BW = imclose(BW,se);
BW = bwareafilt(BW,1);
xyCoordinates = regionprops(BW,'PixelList');

0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox 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!