0
3.9kviews
Perform histogram stretching so that the new image has a dyna mic range of [0,7]
Grey Level 0 1 2 3 4 5 6 7
No. of pixels 100 90 85 70 0 0 0 0

Mumbai University > Computer Engineering > Sem 7 > Image Processing

Marks: 10 Marks

Year: May 2016

1 Answer
0
261views

Here, $r_{\min} = 0 \ \ \ \ r_{\max} = 3 \\ s_{\min} =0 \ \ \ \ s_{\max} = 7$

$s= s_{\max} - s_{\min}/r_{\max} – r_{\min}(r –r_{\min} )+s_{\min}$

Therefore,$s=\dfrac73 (r-0)+0$

When,$r=0 ,s=0 \\ r=1 ,s=\dfrac73 (1-0)=2.3≈2 \\ r=2 ,s=\dfrac73 (2-0)=4.67≈5 \\ r=3 ,s=\dfrac73 (3-0)=7$

Therefore,we have

r=0 S=0

r=1 S=2

r=2 S=5

r=3 S=7

INPUT HISTOGRAM:

enter image description here

OUTPUT HISTOGRAM:

enter image description here

Please log in to add an answer.