Question: Run a Matlab script below, and it was stuck at line 6 . . . % Read in the image original _ image = imread
Run a Matlab script below, and it was stuck at line
Read in the image
originalimage imreadstreetjpg;
Compute the Radon transform
theta ::;
R xp radonoriginalimage, theta;
Initialize variables to store results
mseresults zeros;
reconstructedimages cell;
Perform inverse Radon transform with different filters and interpolations
filters RamLak', 'Hamming', 'Cosine', 'Cosine';
interpolations linear 'linear', 'spline', 'nearest';
for i :
reconstructedimagesi iradonR theta, 'linear', filtersi interpolationsi;
Calculate the MSE
mseresultsi sumsumdoubleoriginalimage reconstructedimagesi numeloriginalimage;
end
Display the results
figure;
subplot;
imshoworiginalimage;
titleOriginal Image';
subplot;
imagesctheta xp R;
colormapgca 'hot';
titleRadon Transform';
for i :
subplot i ;
imshowreconstructedimagesi;
titleReconstructed Image filtersi interpolationsi MSE: numstrmseresultsi;
Error below:
end problem
Error using radon
Expected input number I, to be twodimensional.
Error in radon line
validateattributes Inumeric 'logical'd 'nonsparse'mfilename, I ;
Error in problemine
radonoriginalimage, theta;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
