rec3 - CS 177 Week 3 Recitation Slides Pictures Pixels...

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

View Full Document Right Arrow Icon
1 CS 177 Week 3 Recitation Slides Pictures, Pixels, Colors and for Loop
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 Announcements
Background image of page 2
3 ANY QUESTIONS?
Background image of page 3

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

View Full DocumentRight Arrow Icon
Real media is analogue (continuous). To digitize it, we break it into parts and encode them into numbers. By encoding them, we can more easily manipulate them, store them, transmit them without error, etc. 4 Reminder: Why digitize media?
Background image of page 4
We digitize pictures into lots of little dots Enough dots and it looks like a continuous whole to our eye Our eye has limited resolution Each little dot (picture element) is referred to as a pixel 5 Digitization of Pictures
Background image of page 5

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

View Full DocumentRight Arrow Icon
6 myFile = pickAFile() myPicture = makePicture(myFile) show(myPicture) We already saw how to display a picture in JES
Background image of page 6
7 Now, let’s see how a picture is represented in JES A Picture is a matrix of pixels Row: width Column: height Pixels are picture elements Each pixel object knows its color It also knows where it is in its picture
Background image of page 7

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

View Full DocumentRight Arrow Icon
Each pixel encodes the color at that position in the picture How we represent a color? We use RGB model to encode colors in computers.
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/22/2012 for the course CS 177 taught by Professor Staff during the Fall '08 term at Purdue.

Page1 / 23

rec3 - CS 177 Week 3 Recitation Slides Pictures Pixels...

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

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