Lab 09 - Lab #9 26 March 2007 Chris Sutherland 11W Part 1...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Lab #9 26 March 2007 Chris Sutherland 11W Part 1 1. 2. 3. 4. Didnt alter it. Part 2 1. Name Size Bytes Class background 512x768x3 1179648 uint8 array chris 512x768x3 1179648 uint8 array 2. 3. 4. 5. 170 6. 125 Part 3 1. <, <, > 2. Red and green values have to be lower than the cutoff point while blue is greater than the cutoff point for the correct output of 0, which is used to identify the blue background. Part 4 1. 2. 3. Part 5 1. 180 miles / hr * 1 hr / 3600s * 1 s / 30 frames * 5280 ft / mile = 8.8 ft / frame 2. 180 miles / hr * 1 hr / 3600s * 5280 ft / mile * 12 in / ft * 1 frame / in = 3168 fps Part 6 1. 30 Minutes. 2. 1.5 Hours 3. None 4. How to generate and use masks in MatLab 5. None. 6. See next page. %-- 3/26/07 10:55 PM --% chris = imread( 'Chris.bmp' ); background = imread( 'Minimal II.bmp' ); imshow( chris ) imshow( background ) who whos imhist(chris(:,:,1)); LabelGraph('Chris Sutherland','Imhist of Foreground -- Red Pixels', 'Brightness','Number of Pixels With a Certain Brightness') figure; imhist(chris(:,:,2)); LabelGraph('Chris Sutherland','Imhist of Foreground -- Green Pixels', 'Brightness','Number of Pixels With a Certain Brightness') imhist(chris(:,:,3)); LabelGraph('Chris Sutherland','Imhist of Foreground -- Blue Pixels', 'Brightness','Number of Pixels With a Certain Brightness') ForegroundMask = Blue(chris, 125); BackgroundMask = Reverse(ForegroundMask); MaskedForeground(:,:,1)=(chris(:,:,1)).*ForegroundMask;MaskedForeground(:,:,1)=(chris(:,:,1))....
View Full Document

This note was uploaded on 09/19/2011 for the course ENGE 1104 taught by Professor Dr.bell during the Spring '08 term at Virginia Tech.

Page1 / 7

Lab 09 - Lab #9 26 March 2007 Chris Sutherland 11W Part 1...

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

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