3D Image Rotation Problem

5 次查看(过去 30 天)
Andrew
Andrew 2023-2-5
评论: Andrew 2023-2-5
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')

回答(1 个)

Sulaymon Eshkabilov
You can try pagetranspose() function:
HH = membrane;
tiledlayout(2,1)
nexttile
surfc(HH)
HR = pagetranspose(HH);
nexttile
surfc(HR)

类别

Help CenterFile Exchange 中查找有关 DICOM Format 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by