Exercise 1
Question 1
• Obtain digital negative of the following 3 X 3
grey scale image using 8 bits per pixel.
122 150 200
225 225 225
250 250 240
Sol: use g(x,y) = L-1-f(x,y)
Question 2
What would be the dynamic range of the
image if it is processed by the contrast
stretching function as shown in fig 5.8.
Consider l=0.2, m=0.5 and n=0.1. The
thresholds t1 and t2 are 2 and 5
respectively for the input image having
grey levels 0 to 7.
r 0 r r1
s (r r1 ) s1 r1 r r2
(r r ) s r2 r L
2 2