如何找到像素位置使用已知的RGB值?
19日视图(30天)
显示旧的评论
我知道某个像素的RGB值在一个图片,我想知道像素的位置。如何去做?
谢谢你。
0评论
答案(1)
图像分析
2016年7月17日
编辑:图像分析
2018年4月18日
做一个面具然后使用find()找出面具是正确的:
%提取个人红、绿、蓝通道。
redChannel = rgbImage (:: 1);
greenChannel = rgbImage (:: 2);
blueChannel = rgbImage (:: 3);
掩码= redChannel = = redValue &…
greenChannel = = greenValue &…
blueChannel = = blueValue;
imshow(面具);
%(行、列)列表
(行、列)=找到(面具);
redValue、greenValue blueValue RGB值,你已经知道你的参考。面具是一个二进制图像说,颜色出现在图像。行和列将其他图像中像素的位置,同样的颜色(R值精确,绿色价值,精确和准确的蓝色值)。