1.0 Chromakey: Place a foreground object in a new background
Using the two pictures at right, write a program to put Kermit into the Food Landscape - put only Kermit into the landscape, without his blue background. The text example will help a lot with this lab exercise, with the main difference being that you are not working with pictures of the same size. Note that it will take some trial and error to adequately remove the blue background and not remove other 'blue' pixels.
· Notice that in the example of the result, some Kermit's eye pixels were replaced with background pixels.
As we saw in class, you will be manipulating the 'foreground object' (Kermit in this case), by changing the scale of this object, cropping it, and converting it to black and white. You may want to create this lab program to be flexible enough that you will be able to simply build upon it for the homework.
For this task, you need to decide a lot of things! Just how will you go about completing this task? Break down the larger task into smaller ones and structure those tasks into a simple listing of function calls. Gradually add complexity to your program step by step. Only go on to the next stage in your program once you have the previous stage working correctly.
2.0 Making Mount Beaker
What to do
For this lab you need to put beaker into Mount Rushmore, between Presidents Roosevelt and Lincoln. To do this you need to
· Crop Beaker's picture so that his coat and tie do not show,
· Scale him to a nice size to fit in his space, and
· Turn him black and white.
You also need to
· Ensure that only Beaker (the foreground object in the 'Beaker' picture) is put onto Mount Rushmore, and not his background (this is the 'chromakey' algorithm, or a similar one that you have modified), and
· Place Beaker into the correct location in Mount Rushmore
Finally
· You need to address the 'boundary' of the Beaker picture better than I did. My sample has a black border from the edge of the cropped-scaled-and-grayed Beaker picture, that shows up on Mount Rushmore. Your final product must not have this black border - you must copy only Beaker, and nothing else, to Mount Rushmore.