O'Reilly logo

Visual Media Processing Using MATLAB Beginner's Guide by George Siogkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – directing a threatening scene

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:

  1. Our two pictures are called penguins.jpg and bears.jpg, so we will load them and display them next to each other:
    >> peng = imread('penguins.jpg'); >> bear ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required