CS101.Lect22.Python.Images.DefiniteLoop.ppt

CS101.Lect22.Python.Images.DefiniteLoop.ppt - CS101 Lecture...

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

View Full Document Right Arrow Icon
Computer Science CS101 Lecture 22: Computing With Images Working with Images in Python The Definite Loop Aaron Stevens (azs@bu.edu) 8 November 2011 Computer Science Overview/Questions Review: python, functions, the definite loop Review: images and pixels Computing with images
Background image of page 1

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

View Full DocumentRight Arrow Icon
Computer Science Try these commands at the command line… Also: repaint(<picture>) Working with pictures Computer Science In JES/Python, a Picture is a data object which represents an image: • Knows its height and width • Knows its filename • Knows its window if it’s opened (via show and repainted with repaint ) What is a picture in JES
Background image of page 2
Computer Science Recall: Pixels We digitize pictures into lots of little dots called picture elements (pixels) Enough dots and it looks like a continuous whole to our eye The function: explore(picture) opens a window where we can explore the picture and its pixels: Computer Science Manipulating Pixels The function: getPixel(picture,x,y) gets a single pixel so that we can manipulate it:
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 note was uploaded on 12/16/2011 for the course CS 101 taught by Professor Stevens during the Fall '08 term at BU.

Page1 / 9

CS101.Lect22.Python.Images.DefiniteLoop.ppt - CS101 Lecture...

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