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 – using imtool to pinpoint differences

Now, it is time to combine the function written in the previous section with what you learned about imtool in the previous chapter, in order to pinpoint the areas of the image where adapthisteq provides superior results. The following steps will help you combine the functions:

  1. First, let's load the image we will be using:
    >> img = imread('holiday_image2.bmp');
  2. Then you should enhance the image using the two versions of histogram equalization:
    >> img_he = ContrastEnhancement(img,1);
    >> img_ahe = ContrastEnhancement(img,3);
  3. Now, let's use imtool for the first and second result:
    >> imtool(img_he)
    >> imtool(img_ahe)

    First, we zoom in using the magnifying glass icon with the plus sign. Once selected, ...

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