Question: It is often found in image processing and related fields that real world data is unsuitable for direct use. This warrants the inclusion of pre-processing

It is often found in image processing and related fields that real world data is unsuitable for direct use. This warrants the inclusion of pre-processing steps before any other operations are performed. An example of this is histogram equalization (HE) and its extension adaptive histogram equalization (AHE) The goal of this problem is to implement a MATLAB function for AHE as described in Chapter 1 of Adaptive Histogram Equalization - A Parallel Implementation. The function has the following specifications: (i) The desired function AHEO takes two inputs: the image im and the contextual region size wam-stze. (ii) Using the pseudocode in Algorithm 1 as a reference, compute the enhanced image after AHE. (iii) You may use loops if necessary. You should not make use of any inbuilt MATLAB functions for AHE or HE. (iv) The function returns one output: the enhanced image after AHE. Algorithm 1 Pseudocode for Adaptive Histogram Equalization of an Image Pre-requirement: Pad the image im on all 4 sides by mirroring intensity values so that the contextual region for edge pixels remains valid. This can be done in MATLAB using padarray0 with the 'symmetric' argument I: function AHE(im, win size) 2 for each pizel (x, y) in image im do 3 rank0 contertualregion' im(i.j) then 7 rankrank +1 output(z, y) im(i.j) then 7 rankrank +1 output(z, y)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
