如何使用matlab和Radon Transformation绘制线条?

时间:2015-04-13 14:00:03

标签: matlab image-processing plot line transform

我使用此代码使用Radon Transform函数radon()来检测图像中的线条。

I = imread('C:\Users\AMiNE\Desktop\sequance 2\Daylight_00010.jpeg');
L=rgb2gray(I);
BW = edge(L);
imshow(I)
figure, imshow(BW)
theta = 0:179;
[R,xp] = radon(BW,theta);
figure, imagesc(theta, xp, R); colormap(hot);
xlabel('\theta (degrees)'); ylabel('X\prime');
title('R_{\theta} (X\prime)');
colorbar

此处来自matlab网站radon的支持页面!

到目前为止,它完美地绘制了边缘图像的Radon变换

enter image description here

但我需要在源图像中绘制线条"我"就像他们在第3步下面的链接中所做的那样

0 个答案:

没有答案