フィルターのクリア

Vectorize Radon transform eqn

2 ビュー (過去 30 日間)
Saket Dandawate
Saket Dandawate 2012 年 9 月 26 日
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 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by