MRI scan slices- I need to resize the image so axes show pixels in mm
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Basically, we have this to get a stack of MRI images:
>> load mri
>> montage(D, map) %shows all slices
I have to assume the pixel spacing in the x and y directions is 1.2mm then show the 20th x-y slice of the brain on axes in mm. I don't even know how to start with resizing
0 Kommentare
Antworten (1)
Rishabh Mishra
am 1 Okt. 2020
Hi,
Consider the following points to find resolution of the issue you are facing.
To select specific MRI scan slices out of the given 27 slices, use the code below:
arr = [2 5 7 10]
montage(D,map,'Indices',arr)
The above code displays the scanned slices corresponding to indices mentioned in ‘arr’.
To resize all the thumbnails to specific size, use the code below:
sizeArray = [120 120]
montage(D,map,'Indices',20,'ThumbnailSize',sizeArray)
The above code resizes the 20th slice of the brain scan as per the sizes mentioned in ‘sizeArray’.
Hope this helps.
0 Kommentare
Siehe auch
Kategorien
Mehr zu MRI 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!