This time we will aim at a task that is a little more difficult than the previous ones. We will try to blend two images taken at the zoo, so that we create a threatening scene. More specifically, the first picture is portraying a team of penguins, standing peacefully in their dome and the second one is portraying a polar bear, strolling in her yard more than 500 meters away. Now, what if we brought the bear closer? This would look alarming, especially if the blending process is performed correctly. Let's start by loading our pictures, as always:
Our two pictures are called
penguins.jpg
andbears.jpg
, so we will load them and display them next to each other:>> peng = imread('penguins.jpg'); >> bear = imread('bear.jpg'); >> imshowpair(peng,bear)
Now, these photographs have almost nothing in common, so the prospects of mixing them don't look very good. Not all hope is lost though. The first step is to crop both pictures, aiming...