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!