Chapter 6. Conditionally Modifying Pixels


[Page 173]

6.1

CONDITIONAL PIXEL CHANGES

6.2

SIMPLE EDGE DETECTION: CONDITIONALS WITH TWO OPTIONS

6.3

SEPIA-TONED AND POSTERIZED PICTURES: USING MULTIPLE CONDITIONALS TO CHOOSE THE COLOR

6.4

HIGHLIGHTING EXTREMES

6.5

COMBINING PIXELS: BLURRING

6.6

BACKGROUND SUBTRACTION

6.7

CHROMAKEY

6.8

CONCEPTS SUMMARY


Chapter Learning Objectives

The media learning goals for this chapter are:

  • To replace one color with another in a picture.

  • To do simple edge detection.

  • To replace several colors in a picture: sepia-toned.

  • To replace a range of colors with one color: posterizing.

  • To average nearby pixels when scaling up for a smoother result: blur.

  • To replace the background in a picture.

The computer science goals for this chapter are:

  • To conditionally execute a statement or block of statements using if.

  • To use a conditional with two possible results: if and else.

  • To use a conditional with greater than two possible results: if, else if, and else.

  • To introduce the not operator.

  • To combine boolean expressions with and and or.



Introduction to Computing & Programming Algebra in Java(c) A Multimedia Approach
Introduction to Computing & Programming Algebra in Java(c) A Multimedia Approach
ISBN: N/A
EAN: N/A
Year: 2007
Pages: 191

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net