3D Image Rotation Problem
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Sulaymon Eshkabilov
am 5 Feb. 2023
You can try pagetranspose() function:
HH = membrane;
tiledlayout(2,1)
nexttile
surfc(HH)
HR = pagetranspose(HH);
nexttile
surfc(HR)
Siehe auch
Kategorien
Mehr zu DICOM Format finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!