Vectorize Radon transform eqn
显示 更早的评论
The Radon transform eqn is given as

where
P is projection data
f(x,y) is the grayscale image
delta is dirac delta function
theta is fs:fs:360
without vectorization it includes 4 loops for r, theta, x and y
---------------------------------------------------------------
for a 255x255 image my code is
fs=30;
theta=fs:fs:360;
rad=deg2rad(theta);
x=flipud((-127:127)');
y=-127:127;
t=x;
P(t,1:length(theta))=integral2(img*dirac(cos(rad).*x+sin(rad).*y-t),-127,127,-127,127);
but this code is giving dimensions missmatch
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!