The fading of images is a special effect that is used daily in motion features and big screen movies. The fading of one image to another is implemented simply using a pixel by pixel comparison of the two original images. Write a Matlab program that implements the fading algorithm from an initial image to a destination image. Use the Matlab function ‘drawnow’ to display the intermediate images of the fade.
Write a program to find instances of your template in the image using the Binary Template Matching algorithm discussed in class. You will have to design the template yourself based on an analysis of the image. If J = MATCH(I1,I2), then M2(I1,I2) = over all rows and columns of J. Apply the match measure M₂ at every pixel in the input image where a sufficiently large neighborhood exists. Construct an output image J₁ where each pixel is equal to the match measure M₂ (set J₁ equal to zero at pixels where a sufficiently large neighborhood does not exist in the input image). Threshold the image J₁ to obtain a binary image J₂ that should be equal to logical zero at pixels where there is a high probability that your template is present in the input image. Display the original image, the template, J₁ and J₂.
Write a program to perform histogram equalization on images. Turn in your Matlab code, printouts of the original and equalized image(s), and histograms of the original and equalized image(s).