Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

88 Environmental scanning concepts and applications.

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago