I need help for creating a point with 2x2 pixels , a line of 2x200 pixels and 256x256 solid square to produce a sinogram by using sinogram function.
Show older comments
Hello! I need help for creating a point with 2x2 pixels , a line of 2x200 pixels and 256x256 solid square to produce a sinogram by using sinogram function. I wrote the code for square down below:
%Creating the square image of 256x256 pixels
Image_sqr = zeros(256,256);
Image_sqr(128:129, 128:129) = 1;
imshow(Image_sqr);
title('Square Image')
%Radon transform for producing sinogram
theta=0:180;
imagesc(theta, 1:size(p,1), p);
%Sinogram
figure;
imagesc(theta, q, p);
title('Sinogram of a Square');
xlabel('Projection Angle Theta');
ylabel('Position');
colormap(hot);
colorbar;
I could not get a triangular sinusoidal image. I could not figure out what I am doing wrong and in addition to taht I don't know how to do this process with a point and a line. Could you please help me?
Accepted Answer
More Answers (0)
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


