Detecting Edges in Images - PowerPoint PPT Presentation

1 / 86
About This Presentation
Title:

Detecting Edges in Images

Description:

Detecting Edges in Images. by. Dr. Niels Lobo. UCF EXCEL Applications of Calculus. Overview of talk ... We will first do three Examples of problems. from the ... – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 87
Provided by: exce1
Category:
Tags: detecting | edges | images | lobo

less

Transcript and Presenter's Notes

Title: Detecting Edges in Images


1
Detecting Edges in Images
  • by
  • Dr. Niels Lobo
  • UCF EXCEL Applications of Calculus

2
Overview of talk
  • We will first do three Examples of problems
  • from the book, and then address the
  • application to Computer Vision.

3
Calculus Problem A from the Book
  • Example A Textbooks Section 3.1 Example 6
  • Let D (t) be the U.S. National
  • debt at time t. The table
  • gives approximate values
  • of this function by providing
  • end of year estimates, in
  • billions of dollars, from
  • 1980 to 2000. Interpret and
  • estimate the value of

4
Calculus Problem A from the Book


  • The derivative means the
    rate of change of D with respect to t when t
    1990,
  • i.e, the rate of increase of national debt in
    1990.
  • To compute this, refer to Eqn. 3 in section 3.1,
  • So, according to this eqn., we have


5
Calculus Problem A from the Book


  • Eqn. 3 in section 3.1,
  • According to this eqn., we have

  • So we compute and tabulate values of the
    difference quotient as follows (the difference
    quotient records the average rate of change).

6
Calculus Problem A from the Book
  • So we compute and
  • tabulate values of the
  • difference quotient as
  • follows (the difference
  • quotient records the
  • average rate of change).

7
Calculus Problem A from the Book
  • Let us see how the table
  • gets its values.

8
Calculus Problem A from the Book
  • Remember that the For t 1980,
    compute
  • original data was

  • which is

  • 3233.3 930.2

  • divided by 10 (years)


  • which is 230.31.

9
Calculus Problem A from the Book
  • So, that is the first entry.

10
Calculus Problem A from the Book
  • Similarly, get the rest.

11
Calculus Problem A from the Book
  • From the table we see that
    lies
  • somewhere between 257.48 and 348.14
  • billion dollars per year. (Here we are
  • making the reasonable assumption that the
  • debt didnt fluctuate wildly between 1980
  • and 2000.)

12
Calculus Problem A from the Book
  • We estimate that the rate of increase of the
  • national debt of the United States in 1990
  • was the average of these two numbers, namely
  • 303 billion
    dollars per year.
  • (because 303 is the average of 257.48 and 348.14)

13
Calculus Problem B from the Book
  • Example B Textbooks Section 3.1 Problem 31
  • Let T be the temperature (in ) in
    Dallas t hours after midnight on June 2, 2001.
    The table shows values of this function recorded
    every two hours. What is the meaning of
    ? Estimate its value.

14
Calculus Problem B from the Book
  • Solution
  • means the rate of change of
    temperature
  • in Dallas at 10 am.
  • To estimate its value, first we calculate the
  • difference quotient values .
  • Need table of

15
Calculus Problem B from the Book
  • Note the use of the word DIFFERENCE.
  • Due to the fact that we do not have continuous
  • data, (meaning we do not have the function
  • values at all possible times), the best we can
  • do is approximate the derivative by a
  • DIFFERENCE. We would like to have been able to
    set the gap to being infinitesimally small.
  • But we cannot. So, we settle for a larger gap.

16
Calculus Problem B from the Book
  • Input
  • gives a Diff Quotient table

17
Calculus Problem B from the Book
  • To estimate , given by
    ,
  • we take the average of the difference
  • quotient values at t8, and t12, to get
  • the result (4.5 3.5)/2, i.e.,
    4.

18
Calculus Problem C from the Book
  • Example C Textbooks Section 3.1 Problem 32
  • Life expectancy improved dramatically in
    the
  • 20th century. The table gives values of E(t),
    the life
  • expectancy at birth (in years) of a male born in
    the
  • year t in the United States. Interpret and
    estimate
  • the values of and
    .

19
Calculus Problem C from the Book
  • .

20
Calculus Problem C from the Book
  • Solution
  • and
    refer to the rate of change (in this
    case, increase) of life expectancy at birth for
    males born in 1910 and 1950 respectively.
  • To estimate these quantities, we build the
    difference quotient table for each of the
    required years.

21
Calculus Problem C from the Book
  • .

22
Calculus Problem C from the Book
  • .

23
Calculus Problem C from the Book
  • Original table is So, first
    entry is

  • (48.3 51.1)/ (-10)


24
Calculus Problem C from the Book
  • .
  • Do we need whole table?

25
Calculus Problem C from the Book
  • .

26
Calculus Problem C from the Book
  • and we proceed to use the approach
  • that is the average
    of
  • 0.28 and 0.41, for an answer of 0.345.
  • Similarly, for , the
    difference
  • quotient table is (on the next slide)

27
Calculus Problem C from the Book
  • .




28
Calculus Problem C from the Book
  • and is taken to be the
    average of
  • 0.31 and 0.1, which is 0.205, indicating that
  • the rate of life expectancy gain was
  • slower in 1950 than in 1910.

29
Images and their Edges
  • Computer Vision
  • Good for substituting machine in place of eye
  • Can assist with recognition
  • Can assist with navigation
  • Can assist with manipulation

30
Computer Vision Helpful Mirror
  • .

31
Computer Vision Driverless Cars
Automated Driver Console
Driverless Taxis
32
Surveillance for Safety
Camera Network
Airport Security
Title
Your Text here
Speaker
Crowd
Border Control
Monitor U.S. assets abroad
33
Computer Vision
  • Crime Watch

34
Computer Vision
  • Airport Security

35
Computer Vision
  • Monitor U.S. Assets Abroad

36
Computer Vision
  • Border Security

37
Medical Imaging
3D Models
Image Guided Surgery
Revolutionizing Medical Science
Automated Cancer Scans
Computerized Fracture Estimation
38
Computer Vision
  • A Basic Task Detect Edges of Regions

39
Detecting Edges in an image
  • This is an example of a picture you might see on
    a computer screen.
  • 20 X 20 pixel image of black box
  • on square white background.

  • Pixel Values for image

40
Black Rectangle on White Background
  • A

41
Computer Vision
  • To

42
Plot values from a row
  • To

43
Find jumps in the plot
  • Denote the plot by , then we Compute
  • We can think of two values, A and B, moving
  • along the row.
  • So we get the calculation being merely (B-A)/1

44
Again, the plot of a row
45
Plot of difference of pairs B-A
46
Absolute Value of B-A
47
How to find strong edges
  • To find an edge from this derivative plot,
  • use a threshold.

48
Effect of Thresholding
Threshold Bar
49
Back to the other example
50
Back to the other example
51
This one has a drop and then a rise
  • .

52
Difference of pairs, B-A
  • .

53
Absolute Value of (B-A)
  • .

54
Thresholding
  • .

55
QUESTION 6
  • Clicker question 6
  • To find an edge in an image
  • A. Compute absolute difference, then Thresh
  • B. Threshold, then take difference
  • C. Differences divide us, so compute similarity
  • D. First non-absolute difference, then Thresh

56
Back to Complete Image
  • A Basic Task Detect Edges of Regions

57
Consider a typical image
  • .

58
For this typical image
  • We know we can
  • find the edges
  • as we proceed along the
  • horizontal direction
  • i.e., along a row
  • i.e., the x-direction

59
For this typical image
  • What about the vertical direction???
  • i.e., along a column? i.e., along the
    y-direction?

60
The y-direction
  • .

61
Compute the Vertical Edges
  • So, just as for the x-direction, we can compute
  • the difference quotient for the y-direction
  • which means we are to compute the difference
  • between two neighboring points that are
  • vertical.

62
Computer Vision
  • So, at all points on the image, we have 2 answers
  • (one from x-direction and one from y-direction.)
    How to give a unified answer at
  • all the points on the image?

63
Computer Vision
  • So, denote image
  • by
  • Then, the two
  • Difference quotients are
  • and

64
What to call these two?
  • So, get the notion of the Gradient.
  • The two quantities combine to give the Gradient
    Vector. See Page 1095 of text.

65
The Gradient
  • .

66
Question 7
Clicker Questions
  • Clicker Question 7
  • In two dimensions, the derivative is the
  • Image
  • Gradient
  • Only one Partial derivative
  • 15 partial derivatives

67
Back to the complete image
  • The Gradient Vector is a physical descriptor of
    two dimensional functions
  • The symbol for the gradient vector is
    ,
  • and to repeat, it has two parts, the partial
    derivatives
  • and

68
Back to the complete image
  • The magnitude of the gradient vector can be
    obtained by squaring the individual components,
    adding them, and taking the square root, to get
    one scalar number. This concept is introduced in
    your Calculus textbook on page 1095, Chapter 17.

69
Back to the complete image
  • The magnitude of the gradient vector can be
    obtained by squaring the individual components,
    adding them, and taking the square root,
  • s magn

70
Computer Vision
  • Apply the gradient
  • magnitude
  • computation to this
  • image

71
Gradient Magnitude
  • .

72
Use a Threshold
  • .

73
Use a LOWER Threshold


  • Edges too Thick !!

74
Thickness of edges
  • Next week, will see how to get thin edges.
  • In the meantime, look at some cool stuff.

75
Computer Vision
  • A

76
Computer Vision
  • A

77
Computer Vision
  • A

78
Computer Vision
  • A

79
Computer Vision
  • A

80
Computer Vision
  • A

81
Computer Vision
  • A

82
Computer Vision
  • A

83
Computer Vision
  • A

84
Computer Vision
  • A

85
Computer Vision
  • A

86
Computer Vision
  • .
Write a Comment
User Comments (0)
About PowerShow.com