Question: In c++ I am trying to process an image to binarization and it can be done by comparing each pixel within the input image against
In c++
I am trying to process an image to binarization and it can be done by comparing each pixel within the input image against a predefined threshold T, and deciding whether each individual pixel gets turned white or black. Pixels whose intensity is less than T become black, all others become white. In order to find the threshold I must come up with a formula to figure out the median/intensity of all pixels.
How to calculate the average intensity, or the median of all pixels? Write a formula to figure this out and explain how you did it.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
