Green Screen: Example of Solving A Programming Problem
Green Screen: Example of Solving A Programming Problem
Example of Solving
a Programming Problem
Green Screen
Need to figure out exactly how to do
before we can program it
Output Image
Background Image
Output Image
Background Image
Output Image
Background Image
Output Image
Background Image
Output Image
Background Image
bgImage
Output Image
bgImage
Output Image
bgImage
Output Image
bgImage
Output Image
bgImage
Output Image
bgImage
Output Image
bgImage
Output Image
bgImage
Output Image
bgImage
10
Output Image
bgImage
11
Output Image
bgImage
12
Output Image
bgImage
13
12
13
3
4
5
6
7
8
9
10
11
12
13
3
4
5
6
7
8
9
10
11
6
7
8
9
10
11
12
13
Observe:
repetition for each pixel
3
4
3
4
3
4
3
4
3
4
3
4
currentPixel
3
4
currentPixel
3
4
currentPixel
3
4
currentPixel
3
4
currentPixel
3
4
currentPixel
3
4
currentPixel
fgImage
output
bgImage
1
3
4
currentPixel
fgImage
output
bgImage
1
3
4
currentPixel
fgImage
bgImage
1
3
4
Ready to Code!
Algorithm appears to work!
Next: implement it in code
3
4