选择特定的图像区域进行过滤

时间:2011-10-22 08:50:58

标签: matlab image-processing

尝试提取图像的红色部分,如链接图片所示

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

这样的结果图片

任何人都可以帮助我仅在红色部分中提取线

1 个答案:

答案 0 :(得分:1)

这就是我在Mathematica中的表现:

enter image description here

相关问题