Assignment 1
Q1. Write a MATLAB function called match that implements the histogram matching algorithm for 8-bit images that was described in class. The function header should have the form.
function im2 = match(im,h) where im is a uint8 intensity image, h is the 256-bin histogram to be matched and im2 is the output image. You can use any built-in MATLAB functions in your code except for histeq.
Histogram matching can be used to perform. histogram equalization by appropriate specification of the desired histogram. Equalize the uint8 intensity image pout.tif using the function match and include a printout of the output in your report. Also include a plot of the vector h that you used as input.