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

1 次查看(过去 30 天)
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

回答(1 个)

Rishabh Mishra
Rishabh Mishra 2020-10-1
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.

类别

Help CenterFile Exchange 中查找有关 MRI 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by