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:
>> img = imread('holiday_image2.bmp');
>> img_he = ContrastEnhancement(img,1); >> img_ahe = ContrastEnhancement(img,3);
imtoolfor 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, ...