Question: [Q5 25pts] a) Implement the histogram specification using a piece-wise linear reference distribution function, as described in Sec.4.6.3 in the book Digital Image Processing. Define
![[Q5 25pts] a) Implement the histogram specification using a piece-wise linear](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f38b38c46a3_92066f38b383f45c.jpg)
[Q5 25pts] a) Implement the histogram specification using a piece-wise linear reference distribution function, as described in Sec.4.6.3 in the book Digital Image Processing. Define a new object class with all necessary instance variables to represent the distribution function and implement the required functions PL(i)(Eqn. (4.23)) and Pu 1(b)(Eqn.(4.24)) as methods of this class. b) Test your code on the gray-scale version of your selfie photo reference distribution: L ((0, 0.1),(50,0.15), (110,0.3), (170,0.7),(220,0.95),(255,1)). Print the histograms of original image and output image. [Q5 25pts] a) Implement the histogram specification using a piece-wise linear reference distribution function, as described in Sec.4.6.3 in the book Digital Image Processing. Define a new object class with all necessary instance variables to represent the distribution function and implement the required functions PL(i)(Eqn. (4.23)) and Pu 1(b)(Eqn.(4.24)) as methods of this class. b) Test your code on the gray-scale version of your selfie photo reference distribution: L ((0, 0.1),(50,0.15), (110,0.3), (170,0.7),(220,0.95),(255,1)). Print the histograms of original image and output image
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
