MRI scan slices- I need to resize the image so axes show pixels in mm

2 Ansichten (letzte 30 Tage)
Raquel Feliz
Raquel Feliz am 18 Sep. 2020
Beantwortet: Rishabh Mishra am 1 Okt. 2020
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

Antworten (1)

Rishabh Mishra
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.

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!

Translated by