
how to extract x and y coordinates within yellow boundary in an image
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Akira Agata
2018-7-13
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!