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 – cloning the seagull

In this example, we will demonstrate how we can perform image blending without actually preprocessing the two input images. Let's start:

  1. As always, our first step is to import the two images in MATLAB. As already mentioned, we will use the two images that do not need preprocessing, named seagull1.jpg and seagull2.jpg:
    >> A = imread('seagull1.jpg');
    >> B = imread('seagull2.jpg');
  2. Now that we have loaded our images, we can display them next to each other, to see if they fit our purpose:
    >> figure,imshowpair(A,B,'montage');
    Time for action – cloning the seagull
  3. It is apparent that the images are quite suitable for our purposes. They have almost identical ...

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