Class
13 - Augmented Reality - Applications
1 |
Create an one bit image.
|
| 2 |
Display the cameraImage onto the one bit image.
|
| 3 |
Create a ball object with linear up and down movement and bouncing mechanism.
|
| 4 |
For each exitFrame, calculate the pixel colour at the edges of the ball. For simplicity, in this example, we find the top and bottom edges only.

Sample movie
|
| 5 |
For better result, you can calculate more edge points.

|
| 6 |
A more complicated example
|
|