|
@@ -244,7 +244,7 @@ For this first exercise you can ignore the following parameters: ghost, offset_x
|
244
|
244
|
|
245
|
245
|
Test your implementation by loading object and background images and verifying the merged image.
|
246
|
246
|
|
247
|
|
-## Exercise 2 - Creating a Composite Image using the `ghost` Filter
|
|
247
|
+### Exercise 2 - Creating a Composite Image using the `ghost` Filter
|
248
|
248
|
|
249
|
249
|
In this exercise you will modify Exercise 1 to apply a ghost filter to each of the pixels that will be composed over the background image (if the `ghost` variable is true). The filter creates a ghost like effect on the objects composed over the background image, as in Figure 6.
|
250
|
250
|
|
|
@@ -266,7 +266,7 @@ $$N_B=\frac{S_B+B_B}{2},$$
|
266
|
266
|
|
267
|
267
|
where $$N_R$$, $$N_G$$, and $$N_B$$ are the red, green and blue components of the new ghost pixel. $$S_R$$, $$S_G$$, and $$S_B$$ are the components of the object image. $$B_R$$, $$B_G$$, $$B_B$$ are the components of the background image.
|
268
|
268
|
|
269
|
|
-## Exercise 3 - Create a Composite Image placing the Object in a Specified Position
|
|
269
|
+### Exercise 3 - Create a Composite Image placing the Object in a Specified Position
|
270
|
270
|
|
271
|
271
|
The widget that displays the background has been programmed to register the position where the user clicks. In this exercise you will program the `MergeImages` function so that the position that user clicks in the background image is used as the *top left* corner where the *object* image will be displayed in the merged image. The figures 7 and 8 illustrate the effect. Note the *Selected Coord* values under the images.
|
272
|
272
|
|