Lab 5 - 1LAB 5 Name: Ryan Corley Section: 4 Change your...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 LAB 5 Name: Ryan Corley Section: 4 Change your MATLAB working directory to where you are going to save your files. This will most likely be you’re "My Documents" directory or your flash drive directory. Problem 1 -This problem does not require any sentences - pictures only. In this problem you are going to visualize some magnetic resonance imaging (MRI) data. As discussed in the Lab, an MRI scan is usually composed of a series slices, with measurements taken in the x and y direction that correspond to a particular tissue value, displayed as some white, black or gray value. This MRI data has 128 measurements taken in the x direction and 128 measurements in the y direction to give a single slice. We have 27 slices that compose the scan of the entire head. a) Read in the MRI data by executing the following lines. load mri; D = squeeze(D); b) View slice 8 of the MRI data by executing the following commands. image(D(:,:,8)); axis image; colormap(map) 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
20 40 60 80 100 120 20 40 60 80 100 120 View a different slice of the MRI data by repeating command (b) but with a different slice number. image(D(:,:,9)); axis image; colormap(map) 20 40 60 80 100 120 20 40 60 80 100 120 c) Use the subplot command to view 8 slices simultaneously in a 2 by 4 grid. The 8 slices should be as follows: 2 slices near the beginning of the scan, 4 slices somewhere in the middle of the scan and 2 slices near the end of the 2
Background image of page 2
scan. Remember there are 27 slices. The command from part (b) will be the command that you will modify to display each image of the subplot. subplot(2,4,1); image(D(:,:,1)); axis image; colormap(map) subplot(2,4,2); image(D(:,:,2)); axis image; colormap(map) subplot(2,4,3); image(D(:,:,3)); axis image; colormap(map) subplot(2,4,4); image(D(:,:,4)); axis image; colormap(map) subplot(2,4,5); image(D(:,:,5)); axis image; colormap(map)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This homework help was uploaded on 04/17/2008 for the course MAP 2480 taught by Professor Monicahurdal during the Fall '07 term at FSU.

Page1 / 8

Lab 5 - 1LAB 5 Name: Ryan Corley Section: 4 Change your...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online