01-22-2009 03:04 AM
Hello..
Can anyone help me in running this script in matlab. It is a code in matlab for finding a R transformation.
"letzt_size reduced_2.jpg" is the inlut image we gives. Any image can be used. I tried to put this code in a Mathscript functionnode. Butit is not working. Otherwise this code works in Matlab.
--------------------------------------------------
D = imread('letzt_size reduced_2.jpg');
imagesc(D)
imshow(D)
[R,xp] = radon(D,[0 45]);
figure; plot(xp,R(:,1)); title('R_{0^o} (x\prime)')
theta = 0:360;
[R,xp] = radon(D,theta);
imagesc(theta,xp,R);
title('R_{\theta} (X\prime)');
xlabel('\theta (degrees)');
ylabel('X\prime');
set(gca,'XTick',0:20:180);
colormap(hot);
colorbar
save radon R xp -ascii -double -tabs
---------------------------------------------------
01-22-2009 07:52 AM
01-22-2009 08:56 AM
01-22-2009 10:06 AM
01-28-2009 07:09 AM