上午試圖提取圖像的紅色部分中選擇圖像的特定區域作爲顯示的鏈接圖像用於過濾
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
任何人都可以幫我提取只在紅色部分的線
你可以嘗試使用'edge'檢測邊緣,然後用105度的線性結構元素擴張。 –
這是相同的圖像在該[問題](http://stackoverflow.com/questions/7672048/detecting-edge-only-in-particular-portion-of-image) – Maurits
檢測邊緣,然後使用與擴張105°線結構元素是不工作... – Patan