选择图像的特定区域进行过滤
我正在尝试提取图像的红色部分,如链接图像
http://tinypic.com/r/ 所示2qntaip/7
我像这样计算
RGB = imread('Frame 0233.jpeg');
RGB =im2double(RGB );
img = rgb2gray(RGB);
n=[2 -1 -1;-1 2 -1;-1 -1 2];%detecting -45 degree lines in image
pout_adapthisteq = adapthisteq(img);
a3 = imfilter(pout_adapthisteq,n);
figure(1),imshow(a3);
得到了这样的结果图像 http://tinypic.com/view.php?pic=ad1zn&s=7
任何人都可以帮我提取仅在红色部分的行
Am trying to extract the red portion of image as shown in the link image
http://tinypic.com/r/2qntaip/7
I worked out like this
RGB = imread('Frame 0233.jpeg');
RGB =im2double(RGB );
img = rgb2gray(RGB);
n=[2 -1 -1;-1 2 -1;-1 -1 2];%detecting -45 degree lines in image
pout_adapthisteq = adapthisteq(img);
a3 = imfilter(pout_adapthisteq,n);
figure(1),imshow(a3);
Got the result image like this http://tinypic.com/view.php?pic=ad1zn&s=7
Can anyone help me to extract the line only in the red portion
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是我在 Mathematica 中的做法:
This is how I would do it in Mathematica: