Module 5
Assignment
1. Tattoos
Use Seamless Cloning to apply this Tattoo to a face or an arm. Would you
use
NORMAL_CLONE or MIXED_CLONE ?
You can make an interactive interface using Highgui that implements
the following steps
1. Display the input image of the face or the arm.
2. Specify a rectangle: Create an interface that allows you to
specify a rectangular region by clicking and dragging the
mouse cursor over the image. To implement this you will need
to work with mouse events in Highgui.
3. Clone butterfly: Clone the butterfly inside the rectangular
Region. You will need to resize the butterfly image based on the
Size of the rectangle.
Here is the link to the butterfly image
I started
with the code of assignment 1-2, I made the alpha Blend on paste.
The assignment
asks for Seamless Cloning. I used both flags NORMAL_CLONE and MIXED_CLONE, and
this way I can compare the results
Here is an
image with the flag NORMAL_CLONE, you can see the blurred region around the
butterfly tattoo.
Next is the summary of the results:
The
MIXED_CLONE, sometimes produce some artifacts.
The
alpha-blend is more precise, but it needs an alpha channel, I made the alpha
channel from the image to be pasted but something strange happens sometimes,
look at the Hello Kitty on the Hillary’s face the color is faded.
2. Pinocchio’s Nose [ Advanced ]
Use the MLS + Head Pose Estimation to create an elongated Pinocchio’s
nose. It should work
Properly for images and videos of faces. Here is an example output .
Note : We have not tried it ourselves, but this
could be fun.
I got a small
Pinocchio’s nose, on several images, using MLS, the face is deformed with the nose. Right
now I am not able to think how to use the MLS together with the Head Pose
Estimation to get a bigger nose. keep thinking.
No hay comentarios:
Publicar un comentario