h3 - #7 ECE 253a Digital Image Processing Pamela Cosman...

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

View Full Document Right Arrow Icon
# 7 ECE 253a Digital Image Processing Pamela Cosman 10/17/11 HOMEWORK 3 Due Wednesday October 26 in class Comment on Matlab’s imshow command: Depending on the version of Matlab, you can use imshow with type uint8, in which case the input should be integer-valued between 0 and 255, or you can use it with type double, in which case the input should be Foating point between 0 and 1. If you have an array of type uint8 with integers between 0 and 255, and you convert it to double, and then immediately display with imshow without ±rst rescaling the values to go from 0 to 1, the image will appear basically all white (since imshow is expecting values between 0 and 1, so everything from 1 to 255 will be interpreted as 1 = white). Likewise, if you have an array of type double with values between 0 and 1, and you convert it to uint8 and display with imshow, the image will appear all black (since all the values will be 0 or 1 which both look rather black when the scale is expected to go up to 255). So basically you can use either data type, you just need to rescale to make sure the range is right. 1. Chromaticity diagrams On the web site you will ±nd a text ±le called cie which contains color matching functions in the XYZ coordinate system. The format of the ±le is wavelength X Y Z from 380 nanometers to 780 nanometers. To read it in: load cie -ascii (a) ²or this problem we ask you to produce hardcopy of your plots as well as of your matlab commands. On one graph, plot the color matching functions,
Background image of page 1

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

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

This note was uploaded on 01/15/2012 for the course ECE ece253A taught by Professor Cosman during the Fall '11 term at UCSD.

Page1 / 3

h3 - #7 ECE 253a Digital Image Processing Pamela Cosman...

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

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