Professional Documents
Culture Documents
Gray value quantization! Webers Law! Gamma characteristic! Adjusting brightness and contrast!
Gray-level histograms and histogram equalization! Point operations for combining images!
Contouring
3 bits
Bernd Girod: EE368 Digital Image Processing!
2 bits
1 bit
Point Operations no. 2 !
I + I
Visibility threshold!
I I KWeber 12%
Bernd Girod: EE368 Digital Image Processing!
Modern at panel display in dark room 1000:1! Cathode ray tube 100:1! Print on paper 10:1!
Gamma characteristic !
I!
I ~ U
= 2.0 . . . 2.3!
Voltage U!
U ~ I1
U ~ log(I )
U ~ I1
Imax = 100 Imin
Photographic lm!
Hurter & Drifeld curve (H&D curve)! for photographic negative! slope -!
Luminance!
shoulder!
2.0
density d
I = I 0 10 d = I 0 10 ( log E +d0 ) = I 0 10 d0 E
1.0
toe!
linear region!
log E
E is exposure
0
d0
measures lm contrast!
General purpose lms: = -0.7 . . . -1.0! High-contrast lms: = -1.5 . . . -10!
f [ x, y ]
a f [ x, y ]
I ~ ( a f [ x, y ]) = a ( f [ x, y ])
increased by 50%!
f [ x, y ]
a ( f [ x, y ])
with
= 1.5
Original ramp 0!
For B-bit image, initialize 2B counters with 0 ! Loop over all pixels x,y! When encountering gray level f [x,y]=i, increment counter #
Normalized histogram may be thought of as an empirical probability distribution.! You can also use fewer, larger bins to trade off amplitude resolution against sample size.!
Example histogram !
#pixels!
Example histogram !
#pixels!
gray level!
Pout ! image!
Histogram equalization !
g=T(f)
!to be applied to each pixel of the input image f [x,y], such that a uniform distribution of gray levels in the entire range results for the output image g[x,y].
Analyse ideal, continuous case rst, assuming! 0 g 1 0 f 1
T(f) is strictly monotonically increasing, hence, there exists! 0 g 1 f = T 1 ( g )
0 f 1
Then . . . !
dg = pf ( f ) df
df 1 pg ( g ) = p f ( f ) = p f ( f ) =1 dg f =T 1 ( g ) p f ( f ) 1 f =T ( g )
0 g 1
Now, f only assumes discrete amplitude values f0 , f1 ,, fL1 ! !with empirical probabilities!
n0 P0 = n n1 P1 = n nL1 PL1 = n
L1
where n = nl
l =0
gk = T ( fk ) = Pi
i=0
for k = 0,1..., L 1
The resulting values gk are in the range [0,1] and need to be scaled and rounded appropriately. !
#pixels!
gray level!
#pixels!
gray level!
#pixels!
gray level!
#pixels!
gray level!
#pixels!
gray level!
#pixels!
gray level!
#pixels!
Histogram Clipping!
Apply histogram equalization based on a histogram obtained from a portion of the image!
Tiling approach:
subdivide into overlapping regions, mitigate blocking effect by smooth blending between neighboring tiles !
Must limit contrast expansion in at regions of the image, e.g. by clipping individual histogram values to a maximum (CLAHE - Contrast-limited adaptive histogram equalization)!
[Pizer, Amburn et al. 1987]!
Bernd Girod: EE368 Digital Image Processing! Point Operations no. 25 !
Original!
Global histogram!
Original image !
Image averaging for noise reduction! Combination of different exposures for high-dynamic range imaging! Image subtraction for change detection! Accurate alignment is always a requirement!
http://www.cambridgeincolour.com/tutorials/image-averaging-noise.htm!
Combined image!
Point Operations no. 31 !
Image subtraction !
Find differences/changes between 2 mostly identical images! Example: digital subtraction angiography!
Contrast ! enhancement !
http://www.isi.uu.nl/Research/Gallery/DSA/!
+!
-!
+!
-!
Abs(.) > ?
Abs(.) > ?
w/o alignment!