Digital Image Processing - PowerPoint PPT Presentation

About This Presentation
Title:

Digital Image Processing

Description:

Increase the dynamic range of the gray levels by using a gray-level transformation ... multiplying two images, your multiplication function must be able to handle ... – PowerPoint PPT presentation

Number of Views:213
Avg rating:3.0/5.0
Slides: 88
Provided by: csieN4
Category:

less

Transcript and Presenter's Notes

Title: Digital Image Processing


1
Digital Image Processing
  • Chapter 3 Image Enhancement in the Spatial Domain

2
Background
  • Spatial domain process
  • where is the input image, is
    the processed image, and T is an operator on f,
    defined over some neighborhood of

3
  • Neighborhood about a point

4
  • Gray-level transformation function
  • where r is the gray level of and s is
    the gray level of at any point

5
  • Contrast enhancement
  • For example, a thresholding function

6
  • Masks (filters, kernels, templates, windows)
  • A small 2-D array in which the values of the mask
    coefficients determine the nature of the process

7
Some Basic Gray Level Transformations
8
  • Image negatives
  • Enhance white or gray details

9
  • Log transformations
  • Compress the dynamic range of images with large
    variations in pixel values

10
  • From the range 0- to the range 0 to 6.2

11
  • Power-law transformations
  • or
  • maps a narrow range of dark input values
    into a wider range of output values, while
    maps a narrow range of bright input values into
    a wider range of output values
  • gamma, gamma correction

12
(No Transcript)
13
  • Monitor,

14
(No Transcript)
15
(No Transcript)
16
  • Piecewise-linear transformation functions
  • The form of piecewise functions can be
    arbitrarily complex

17
  • Contrast stretching

18
  • Gray-level slicing

19
  • Bit-plane slicing

20
(No Transcript)
21
(No Transcript)
22
Histogram Processing
  • Histogram
  • where is the kth gray level and is the
    number of pixels in the image having gray level
  • Normalized histogram

23
(No Transcript)
24
  • Histogram equalization

25
  • Probability density functions (PDF)

26
(No Transcript)
27
(No Transcript)
28
(No Transcript)
29
  • Histogram matching (specification)

is the desired PDF
30
(No Transcript)
31
(No Transcript)
32
  • Histogram matching
  • Obtain the histogram of the given image, T(r)
  • Precompute a mapped level for each level
  • Obtain the transformation function G from the
    given
  • Precompute for each value of
  • Map to its corresponding level then
    map level into the final level

33
(No Transcript)
34
(No Transcript)
35
(No Transcript)
36
  • Local enhancement
  • Histogram using a local neighborhood, for example
    77 neighborhood

37
  • Use of histogram statistics for image enhancement
  • denotes a discrete random variable
  • denotes the normalized histogram
    component corresponding to the ith value of
  • Mean

38
  • The nth moment
  • The second moment

39
  • Global enhancement The global mean and variance
    are measured over an entire image
  • Local enhancement The local mean and variance
    are used as the basis for making changes

40
  • is the gray level at coordinates (s,t)
    in the neighborhood
  • is the neighborhood normalized
    histogram component
  • mean
  • local variance

41
  • are specified parameters
  • is the global mean
  • is the global standard deviation
  • Mapping

42
(No Transcript)
43
(No Transcript)
44
(No Transcript)
45
Enhancement Using Arithmetic/Logic Operations
  • AND
  • OR
  • NOT
  • Subtraction
  • Addition
  • Multiplication
  • Division

46
(No Transcript)
47
  • Image subtraction
  • Enhancement of differences between images

48
(No Transcript)
49
  • Mask mode radiography

50
  • Image Averaging
  • Averaging K different noisy images

,
51
(No Transcript)
52
(No Transcript)
53
Basics of Spatial Filtering
54
  • Image size
  • Mask size
  • and
  • and

55
(No Transcript)
56
(No Transcript)
57
Smoothing Spatial Filters
  • Smoothing
  • Noise reduction
  • Smoothing of false contours
  • Reduction of irrelevant detail

58
(No Transcript)
59
(No Transcript)
60
(No Transcript)
61
(No Transcript)
62
  • Order-statistic filters
  • median filter Replace the value of a pixel by
    the median of the gray levels in the neighborhood
    of that pixel
  • Noise-reduction

63
(No Transcript)
64
Sharpening Spatial Filters
  • Foundation
  • The first-order derivative
  • The second-order derivative

65
(No Transcript)
66
  • Use of second derivatives for enhancement-The
    Laplacian
  • Development of the method

67
(No Transcript)
68
(No Transcript)
69
(No Transcript)
70
  • Simplifications

71
(No Transcript)
72
  • Unsharp masking and high-boost filtering
  • Unsharp masking
  • Substract a blurred version of an image from the
    image itself
  • The image, The
    blurred image

73
  • High-boost filtering

74
  • Use the Laplacian as the sharpening filtering

75
(No Transcript)
76
(No Transcript)
77
  • Use of first derivatives for enhancementThe
    gradient

78
  • The magnitude is rotation invariant (isotropic)

79
  • Computing using cross differences, Roberts
    cross-gradient operators

and
80
  • Sobel operators
  • A weight value of 2 is to achieve some smoothing
    by giving more importance to the center point

81
(No Transcript)
82
(No Transcript)
83
Combining Spatial Enhancement Methods
  • An example
  • Laplacian to highlight fine detail
  • Gradient to enhance prominent edges
  • Smoothed version of the gradient image used to
    mask the Laplacian image
  • Increase the dynamic range of the gray levels by
    using a gray-level transformation

84
(No Transcript)
85
(No Transcript)
86
Example 1
  • Histogram Equalization
  • (a) Write a computer program for computing the
    histogram of an image.
  • (b) Implement the histogram equalization
    technique discussed in Section 3.3.1.
  • (c) Download Fig. 3.8(a) and perform histogram
    equalization on it.
  • Fig3.08(a).bmp
  • histo.c

87
Example 2
  • Arithmetic Operations
  • Write a computer program capable of performing
    the four arithmetic operations between two
    images. This project is generic, in the sense
    that it will be used in other projects to follow.
    (See comments on pages 112 and 116 regarding
    scaling). In addition to
  • multiplying two images, your multiplication
    function must be able to handle multiplication of
    an image by a constant.
Write a Comment
User Comments (0)
About PowerShow.com