Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started