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

2 views (last 30 days)
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

Answers (1)

Rishabh Mishra
Rishabh Mishra on 1 Oct 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.

Community Treasure Hunt

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

Start Hunting!