How do i determine the pixel coordinates of an image using RGB values?
1 次查看(过去 30 天)
显示 更早的评论
For example: i'd like to get the coordinates of the pixels with R values from 230 to 250.
0 个评论
回答(1 个)
JESUS DAVID ARIZA ROYETH
2019-12-10
image=imread('peppers.png');
R=image(:,:,1);%red chanel
[x,y]=find(and(R>=230,R<=250));%here coordinates
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!