
how to extract x and y coordinates within yellow boundary in an image
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmad Ridzuan Kudus
am 6 Jul. 2018
Beantwortet: Akira Agata
am 13 Jul. 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 Kommentare
Akzeptierte Antwort
Akira Agata
am 13 Jul. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!