Matlab图像变换--Radon变换
Radon变换可将图像投影到某个角度的放射线上,相应的函数为Radon。Radon变换示例。
在命令行窗口输入:
iptsetpref('ImshowAxesVisible','on')
I = zeros(100,100);
I(25:75, 25:75) = 1;
subplot(121); imshow(I) %待变换图像
theta = 0:180;
= radon(I,theta); subplot(122);
imshow(R,[],'Xdata',theta,'Ydata',xp, 'InitialMagnification','fit')
xlabel('\theta (degrees)');ylabel('x''')
colormap(hot), colorbar %变换系数图像
页:
[1]