3D Image Rotation Problem

5 views (last 30 days)
Andrew
Andrew on 5 Feb 2023
Commented: Andrew on 5 Feb 2023
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')

Answers (1)

Sulaymon Eshkabilov
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)
  1 Comment
Andrew
Andrew on 5 Feb 2023
I forgot to mention that this has to be done on R2019b

Sign in to comment.

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!