SLIDE 3 3
IIP 27
Basic Gray Level Transformations (6) – Contrast Stretching
[ ]
1 1 min 2 2 max min max
(c) ( , ) ( ,0) and ( , ) ( , 1) linear stretch to 0, 1 & the minimum & maximum GL r s r r s r L L r r = = − ⇒ −
poor illumination, lack of dynamic range in sensor… low contrast image solution: increase dynamic range by piecewise linear transformation that cab be arbitrarily complex, however relies on the user
1 1 2 2 1 2 1 2
, linear , 0, 1 thresholding threshold @ mean (d) r s r s r r s s L = = ⇒ = = = − ⇒
Gonzalez & Woods, 2002
IIP 28
Image Enhancement in the Spatial Domain – Histogram Equalization (HE) (1)
- HE yields output image with equally many pixels
at every gray level (flat histogram) which is useful before comparison/segmentation
- r – gray level in input image ( )
- s – gray level transformed by
(r,s=0 is black & r,s=1 is white)
) (r T s =
[ ]
normalized s.t 0,1 r r ∈