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

조회 수: 1 (최근 30일)
Raquel Feliz
Raquel Feliz 2020년 9월 18일
답변: Rishabh Mishra 2020년 10월 1일
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