3D Image Rotation Problem
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Sulaymon Eshkabilov
2023 年 2 月 5 日
You can try pagetranspose() function:
HH = membrane;
tiledlayout(2,1)
nexttile
surfc(HH)
HR = pagetranspose(HH);
nexttile
surfc(HR)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!