Mip
Mip
Apply both Prewitt and Canny edge detectors on a DICOM image separately and display
transform images of both for comparison. Analyze these transform images and explain
both in the report. Reconstruct and display the edge detected images, and write your
observations.
subplot(1, 3, 2);
imshow(prewittEdges);
title('Prewitt Edge Detection');
subplot(1, 3, 3);
imshow(cannyEdges);
title('Canny Edge Detection');
subplot(1, 2, 2);
imshow(reconstructedImageCanny);
title('Reconstructed Image (Canny)');
Create Head Phantom image.Compute the parallel-beam projection data of the phantom
image for two different sets of theta values.Reconstruct and display the head phantom
image, and write your observations.
% Create a head phantom image
headPhantom = phantom('Modified Shepp-Logan', 256);
subplot(1, 2, 2);
imshow(projData2, []);
title('Projection Data (Theta 0-179, Step 5)');
% Reconstruct the image from the projection data for the first set of theta
reconstructedImage1 = iradon(projData1, theta1);
% Reconstruct the image from the projection data for the second set of theta
reconstructedImage2 = iradon(projData2, theta2);
Lab9
Compute fan-beam projection data of a DICOM image.
Convert it to parallel-beam projection data.
Reconstruct the DICOM image from both of these projection data separately.
clc;
clear;
close all
% Test Image
DicomImage = dicomread('000001.dcm');
subplot(4,1,1);
imshow(DicomImage);
title(DICOM Image)
Lab 11
clc
clear
close all
fixed = imread('dicomknee1.jfif');
subplot(2,2,1)
imshow(fixed)
title('Fixed Image')
moving = imread('dicomknee2.jfif');
subplot(2,2,2)
imshow(moving)
title('Moving Image')
subplot(2,2,3);
imshowpair(fixed,moving,'blend');
title('Paired Image')
[a b]=cpselect(moving,fixed,'Wait',true)
t = fitgeotrans(a,b,'projective');
fixedview = imref2d(size(fixed));
registered = imwarp(moving,t,'Outputview',fixedview);
subplot(2,2,4);
imshowpair(fixed,registered,'blend');
title('Registered Image')