Question: The pseudo code for the histogram equalization is shown below: Initializing_Phase Assume original image is stored in image_org and resultant image in image_equ Let N

 The pseudo code for the histogram equalization is shown below: Initializing_Phase

The pseudo code for the histogram equalization is shown below: Initializing_Phase Assume original image is stored in image_org and resultant image in image_equ Let N be the number of pixels for each frame Let L = 256 (number of grayscale levels) Define buffers hist[L], mapped_levels [L] Initialize elements of hist to O calculate_histogram (step 1) For i = 1 - N Temp = current pixel value Increment hist[temp] // counting the number of occurrences of End For each level map_levels (on the fly) (step 2 and 3) For i= 1 - L Update sum = accumulated histogram count mapped_levels[i] = (int) (L-1) *sum/N End For transform_image (step 4) For i = 1 N img_equ[i] = mapped_levels[img_org[i]] End For

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!