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
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.