3D Image Rotation Problem
5 views (last 30 days)
Show older comments
I am trying to rotate a 3D image (512x512x680 int16). I have tried permute, rot90, and flip commands; however, no matter what I do, I cant seem to get the orientation right. Any suggestions on what matrix manipulation I can perform to oreint these images correctly.
After performing certain commands, I then use the code below to generate the three images.
%Transverse/Axial/Horizontal (Plane X-Y Plane Modulated by Z)
figure,
imagesc(Skull_temp(:,:,round(size(Skull_temp,3)/2)));
title('Horizontal View of DICOM Middle')
xlabel('+x = left')
ylabel('+y = Posterior')
%Coronal Series (Plane X-Z Plane Modulated by Y)
cor_skull_temp = permute(Skull_temp,[1,3,2]);
figure,
imagesc(cor_skull_temp(:,:,round(size(Skull_temp,2)/2)));
title('Coronal View of DICOM Middle')
xlabel('+x = left' )
ylabel('+z = Superior')
%Sagital View of DICOM Middle (Plane Z-Y Plane Modulated by X)
sag_skull_temp = permute(Skull_temp,[3,2,1]);
figure,
imagesc(sag_skull_temp(:,:,round(size(Skull_temp,1)/2)));
xlabel('+z = Superior')
ylabel('+y = Posterior')
title('Sagital View of DICOM Middle')
0 Comments
Answers (1)
Sulaymon Eshkabilov
on 5 Feb 2023
You can try pagetranspose() function:
HH = membrane;
tiledlayout(2,1)
nexttile
surfc(HH)
HR = pagetranspose(HH);
nexttile
surfc(HR)
See Also
Categories
Find more on DICOM Format 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!