Vectorize Radon transform eqn
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!