© 2002 by yu hen hu 1 ece533 digital image processing image enhancement by modifying gray scale of...

18
© 2002 by Yu Hen Hu ECE533 Digital Image Processing Image Enhancement by Modifying Gray Scale of Individual Pixels

Upload: lucas-andrews

Post on 17-Dec-2015

223 views

Category:

Documents


1 download

TRANSCRIPT

© 2002 by Yu Hen Hu1ECE533 Digital Image Processing

Image Enhancement by Modifying Gray Scale of

Individual Pixels

© 2002 by Yu Hen Hu2ECE533 Digital Image Processing

Image Enhancement

Goal: to modify an image so that its utilization on a particular application is enhanced.

A set of ad hoc tools applicable based on viewer’s specific needs.

No general theory on image enhancement exists.

Methods:» Spatial domain

– Pixel processing Gray level

transformation: Data independent

histogram processing: Data-dependent

Arithmetic ops

– Spatial filtering

» Frequency domain filtering

© 2002 by Yu Hen Hu3ECE533 Digital Image Processing

Gray-level Transforms

Operated on individual pixel’s intensity values: s = T(r). r: original intensity, s: new intensity

Data independent pixel-based enhancement method.

Approaches» Image negatives» Log transform» Power law transform» Piece-wise linear transform

© 2002 by Yu Hen Hu4ECE533 Digital Image Processing

Image Negatives

s = T(r) = L1r Similar to photo

negatives. Suitable for

enhancing white or gray details in dark background.

© 2002 by Yu Hen Hu5ECE533 Digital Image Processing

Log Gray-level Transform

s = T(r) = c log(1+r) expand dark value to enhance details of dark area

© 2002 by Yu Hen Hu6ECE533 Digital Image Processing

Power Law Gray-level Transform

s = T(r) = c s Gamma correction: to compensate the built-in power law compression due to display characteristics.

© 2002 by Yu Hen Hu7ECE533 Digital Image Processing

Piece-wise Linear Gray-level Transform

Allow more control on the complexity of T(r). » Contrast stretching» Gray-level slicing» Bit-plane slicing

© 2002 by Yu Hen Hu8ECE533 Digital Image Processing

Contrast Stretching

© 2002 by Yu Hen Hu9ECE533 Digital Image Processing

Gray-level Slicing

© 2002 by Yu Hen Hu10ECE533 Digital Image Processing

Bit-Slicing

© 2002 by Yu Hen Hu11ECE533 Digital Image Processing

Histogram Processing

Data-dependent pixel-based image enhancement method.

Histogram = PDF of image pixels.» Assumption: each image

pixel is drawn from the same PDF independently (i.i.d.)

» Several effects of histograms are shown at the right side.

© 2002 by Yu Hen Hu12ECE533 Digital Image Processing

Histogram Equalization

A gray-level transformation method that forces the transformed gray level to spread over the entire intensity range.» Fully automatic, » Data dependent,» (usually) Contrast enhanced

Usually, the discrete-valued histogram equalization algorithm does not yield exact uniform distribution of histogram.

In practice, one may prefer “histogram specification” .10,1)(

)()(0

ssp

dwwprTs

s

r

w

r

© 2002 by Yu Hen Hu13ECE533 Digital Image Processing

Histogram Matching

Transform pdf of r to a desired pdf ps(s).

A generalization of histogram equalization.

Basic idea: Given pr(r) and desired pdf pz(z), find a transform z = T(r), such that P(Z ≤ z) = P(R ≤ r).

© 2002 by Yu Hen Hu14ECE533 Digital Image Processing

Indirect Method

Indirect approach:» First equalize the

histogram using transform s = T(r).

» Equalize the desired histogram v = G(z).

» Set v = s to obtain the composite transform

))((1 rTGz

Fig. 3.19

© 2002 by Yu Hen Hu15ECE533 Digital Image Processing

Histogram Matching Example

© 2002 by Yu Hen Hu16ECE533 Digital Image Processing

Histogram for Local Enhancement

© 2002 by Yu Hen Hu17ECE533 Digital Image Processing

Image subtraction

Mask mode radiography

© 2002 by Yu Hen Hu18ECE533 Digital Image Processing

Image Averaging

Same signal, but different noise realization.

Averaging of many such images will enhance SNR.