CS101.Lect23.Python.Images.Selection.ppt

CS101.Lect23.Python.Images.Selection.ppt - CS101 Lecture...

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

View Full Document Right Arrow Icon
Computer Science CS101 Lecture 23: Computing With Images Decision-making Red-eye reduction Aaron Stevens (azs@bu.edu) 10 November 2011 Computer Science Overview/Questions Review: python, functions, the definite loop Review: images and pixels Review: images overlay example Making decisions in python Computing with images: red-eye reduction
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 Review: The Definite Loop The definite loop has the general form: for <var> in <sequence>: <body> The variable after the keyword for is called the loop index . It will assume each successive value in <sequence> , and will perform the <body> statements for each value. Computer Science Review: Image Overlay An image overlay function…
Background image of page 2
Computer Science Red-Eye Correction What causes red-eye in a picture? How could we correct for red-eye? Computer Science if statement if statement A structure which evaluates a logical expression, and controls a block of statements.
Background image of page 3

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

View Full DocumentRight Arrow Icon
Computer Science Python Equality Operators Equality == True if and only if both operands have the
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 9

CS101.Lect23.Python.Images.Selection.ppt - CS101 Lecture...

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

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