Local Analysis of 2D Curve Patches Local Analysis of 2D Curve - - PowerPoint PPT Presentation

local analysis of 2d curve patches local analysis of 2d
SMART_READER_LITE
LIVE PREVIEW

Local Analysis of 2D Curve Patches Local Analysis of 2D Curve - - PowerPoint PPT Presentation

Local Analysis of 2D Curve Patches Local Analysis of 2D Curve Patches Topic 4.2: Topic 4.2: Local analysis of 2D curve Local analysis of 2D curve patches patches patches patches Representing 2D image curves Representing 2D image


slide-1
SLIDE 1

Local Analysis of 2D Curve Patches Local Analysis of 2D Curve Patches

slide-2
SLIDE 2

Topic 4.2: Topic 4.2: Local analysis of 2D curve Local analysis of 2D curve patches patches patches patches

  • Representing 2D image curves

Representing 2D image curves

  • Estimating differential properties of 2D curves

Estimating differential properties of 2D curves

  • Tangent & normal vectors
  • The arc-length parameterization of a 2D curve
  • The curvature of a 2D curve
slide-3
SLIDE 3

Local Analysis of Image Patches: Outline Local Analysis of Image Patches: Outline

As graph in 2D As graph in 2D As curve in 2D As curve in 2D As surface in 3D As surface in 3D

slide-4
SLIDE 4

Local Analysis of Image Patches: Outline Local Analysis of Image Patches: Outline

As graph in 2D As graph in 2D As curve in 2D As curve in 2D As surface in 3D As surface in 3D

slide-5
SLIDE 5

Estimating Intensities & their Derivatives Estimating Intensities & their Derivatives

Don’t go, or you’ll miss out!

slide-6
SLIDE 6

Estimating Intensities & their Derivatives Estimating Intensities & their Derivatives

Don’t go, or you’ll miss out!

slide-7
SLIDE 7

Representing & Representing & Analysing Analysing 2D 2D Curves, why? Curves, why?

  • Useful representation for:
  • Object boundaries
  • Isophote regions (groups
  • f pixels with the same

intensity)

slide-8
SLIDE 8

Representing & Representing & Analysing Analysing 2D 2D Curves, how? Curves, how?

Math is our friend:

  • Provides an unambiguous

representation

  • Enables computation of

useful properties

slide-9
SLIDE 9

2D Image Curves: Definition 2D Image Curves: Definition

A parametric 2D curve is a continuous mapping γ : (a,b) -> R2 where t -> (x(t), y(t))

slide-10
SLIDE 10

2D Image Curves: Definition 2D Image Curves: Definition

Example: a boundary curve t = pixel # along the boundary x(t) = x coordinate of the tth pixel y(t) = y coordinate of the tth pixel

slide-11
SLIDE 11

2D Image Curves: Definition 2D Image Curves: Definition

To fully describe a curve we need the two functions x(t) and y(t), called the Coordinate Functions.

slide-12
SLIDE 12

A closed 2D curve is a continuous mapping γ : (a,b) -> R2

2D Image Curves: Definition 2D Image Curves: Definition

where t -> (x(t), y(t)) such that (x(a), y(a)) = (x(b), y(b)).

slide-13
SLIDE 13

Smooth 2D Smooth 2D Curves Curves

A curve is smooth when...

slide-14
SLIDE 14

Smooth 2D Smooth 2D Curves Curves

A curve is smooth when all the derivatives of the Coordinate Functions exist

slide-15
SLIDE 15

Derivatives of the Coordinate Functions Derivatives of the Coordinate Functions

The 1st and 2nd derivatives of x(t), y(t) are extremely informative about the shape of a curve. curve.

slide-16
SLIDE 16

Topic 4.2: Topic 4.2: Local analysis of 2D curve Local analysis of 2D curve patches patches patches patches

  • Representing 2D image curves

Representing 2D image curves

  • Estimating differential properties of 2D curves

Estimating differential properties of 2D curves

  • Tangent & normal vectors

Tangent & normal vectors

  • The arc-length parameterization of a 2D curve
  • The curvature of a 2D curve
slide-17
SLIDE 17

The Tangent Vector The Tangent Vector

Notation:

  • γ(t) maps a number (t) to a 2D

point (x(t), y(t)). γ(t) = (x(t), y(t))

  • This type of function is called

a vector-valued function.

slide-18
SLIDE 18

The Tangent Vector The Tangent Vector

Suppose we know γ(0). How can we approximate γ(t)? γ(0) = (x(0), y(0)) γ(t)

slide-19
SLIDE 19

The Tangent Vector The Tangent Vector

Suppose we know γ(0). How can we approximate γ(t)? γ(0) = (x(0), y(0)) γ(t) hint?

slide-20
SLIDE 20

The Tangent Vector The Tangent Vector

Suppose we know γ(0). How can we approximate γ(t)? Using the derivative (tangent)! γ(0) = (x(0), y(0)) γ(t) Using the derivative (tangent)!

slide-21
SLIDE 21

The Tangent Vector The Tangent Vector

γ(0) = (x(0), y(0)) γ(t) Suppose we know γ(0). How can we approximate γ(t)? Using the derivative (tangent)! Using the derivative (tangent)!

slide-22
SLIDE 22

The Tangent Vector The Tangent Vector

γ(0) = (x(0), y(0)) γ(t) Good! But not great. Can we do any better? If so, how? Prediction of γ(t) If so, how?

slide-23
SLIDE 23

The Tangent Vector The Tangent Vector

γ(0) = (x(0), y(0)) γ(t) Good! But not great. Add more information about the curve, like the 2nd, 3rd,… or the nth Prediction of γ(t) 2nd, 3rd,… or the nth derivative! Familiar?

slide-24
SLIDE 24

The Tangent Vector The Tangent Vector

γ(0) = (x(0), y(0)) γ(t) Good! But not great. Add more information about the curve, like the 2nd, 3rd,… or the nth Prediction of γ(t) 2nd, 3rd,… or the nth derivative! This is a Taylor-Series approximation

slide-25
SLIDE 25

The Tangent Vector The Tangent Vector

γ(0) = (x(0), y(0)) γ(t) Formally: the 1st order Taylor-Series approximation to γ(t) near γ(0) is: , so

slide-26
SLIDE 26

The Tangent Vector The Tangent Vector

γ(0) γ(t) Definition. The tangent vector at γ(t) is equal to the first derivative of the function, at that point. In this case:

1st order Taylor- Series approximation

  • f γ(t) at t=0
slide-27
SLIDE 27

The Tangent Vector The Tangent Vector

γ(0) γ(t) In general, the derivative of a vector valued function is the derivative of the n coordinate functions, so if The derivative of f at (t) is:

slide-28
SLIDE 28

Effect of Curve Parameter on the Tangent Effect of Curve Parameter on the Tangent

We can parameterize a curve γ in (infinitely) many different ways, for instance:

  • 1. Make t the number of pixels

between γ(0) and γ(t)

  • 2. Make t the actual length of the
  • 2. Make t the actual length of the

curve between γ(0) and γ(t), in meters (or inches, or light-years).

slide-29
SLIDE 29

Effect of Curve Parameter on the Tangent Effect of Curve Parameter on the Tangent

We can parameterize a curve γ in (infinitely) many different ways, for instance:

  • 1. Make t the number of pixels

between γ(0) and γ(t)

  • 2. Make t the actual length of the
  • 2. Make t the actual length of the

curve between γ(0) and γ(t), in meters (or inches, or light-years). But the key property is that the direction of the tangent remains unchanged, regardless of the scale of the parameter.

slide-30
SLIDE 30

Effect of Curve Parameter on the Tangent Effect of Curve Parameter on the Tangent

The direction of the tangent remains unchanged, regardless of the scale of the parameter. Really? Really? Can we prove it?

slide-31
SLIDE 31

Proof: Let’s parameterize the curve γ in two ways:

  • 1. Take t = the number of pixels between γ(0) and γ(t)
  • 2. Take s = f(t) as the parameter, where f(t) is simply any

differentiable function.

Effect of Curve Parameter on the Tangent Effect of Curve Parameter on the Tangent

slide-32
SLIDE 32

Proof: Let’s parameterize the curve γ in two ways:

  • 1. Take t = the number of pixels between γ(0) and γ(t)
  • 2. Take s = f(t) as the parameter, where f(t) is simply any

differentiable function. In 1, we know the derivative of γ is simply

Effect of Curve Parameter on the Tangent Effect of Curve Parameter on the Tangent

In 1, we know the derivative of γ is simply

slide-33
SLIDE 33

Proof: Let’s parameterize the curve γ in two ways:

  • 1. Take t = the number of pixels between γ(0) and γ(t)
  • 2. Take s = f(t) as the parameter, where f(t) is simply any

differentiable function. In 1, we know the derivative of γ is simply

Effect of Curve Parameter on the Tangent Effect of Curve Parameter on the Tangent

In 1, we know the derivative of γ is simply In 2, the chain rule tells us that if s=f(t) and γ(s) then: which correspond to

slide-34
SLIDE 34

Proof: Let’s parameterize the curve γ in two ways:

  • 1. Take t = the number of pixels between γ(0) and γ(t)
  • 2. Take s = f(t) as the parameter, where f(t) is simply any

differentiable function. In 1, we know the derivative of γ is simply

Effect of Curve Parameter on the Tangent Effect of Curve Parameter on the Tangent

In 1, we know the derivative of γ is simply In 2, the chain rule tells us that if s=f(t) and γ(s) then:

slide-35
SLIDE 35

The Unit Tangent Vector The Unit Tangent Vector

  • Definition. The Unit Tangent is:

The unit tangent vector does not depend on the choice of the parameter t

slide-36
SLIDE 36

The Arc The Arc-

  • Length of a Curve

Length of a Curve

How can we approximate the length of a curve?

slide-37
SLIDE 37

The Arc The Arc-

  • Length of a Curve

Length of a Curve

slide-38
SLIDE 38

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Take small enough steps (of size ∆t) and add!

slide-39
SLIDE 39

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Take small enough steps (of size ∆t) and add!

slide-40
SLIDE 40

The Arc The Arc-

  • Length of a Curve

Length of a Curve

slide-41
SLIDE 41

The Arc The Arc-

  • Length of a Curve

Length of a Curve

This is called a piece-wise-linear length approximation. And what if we make the steps smaller and smaller? ∆t -> 0

slide-42
SLIDE 42

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Then we get the following definition! The arc-length s(t) of the curve γ(t) is given by:

slide-43
SLIDE 43

The Arc The Arc-

  • Length of a Curve

Length of a Curve

For example, lets think about the circle What do we expect

slide-44
SLIDE 44

The Arc The Arc-

  • Length of a Curve

Length of a Curve

For example, lets think about the circle Proportional to the radius and the number of pixels in the circle

slide-45
SLIDE 45

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Example: The arc length of a circle with radius r, whose curve equation can be written as: γ(t) = r ( cos(t), sin(t) ) then unit vectors unit vectors so

slide-46
SLIDE 46

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Example: The arc length of a circle with radius r, whose curve equation can be written as: γ(t) = r ( cos(t), sin(t) ) Now, substituting on the definition, we get:

slide-47
SLIDE 47

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Example: The arc length of a circle with radius r, whose curve equation can be written as: γ(t) = r ( cos(t), sin(t) ) Proportional to the radius… yes! Proportional to the number of pixels in the circle… yes! Now, substituting on the definition, we get:

slide-48
SLIDE 48

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Now, can we parameterize the function γ(t) using the arc-length function itself?

slide-49
SLIDE 49

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Yes! Now, can we parameterize the function γ(t) using the arc-length function itself?

slide-50
SLIDE 50

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Yes! Now, can we parameterize the function γ(t) using the arc-length function itself? A parameterization γ(s) where the curve parameter is the arc- length is (thoughtfully and originally) named the arc-length parameterization.

slide-51
SLIDE 51

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Yes! Lets use the circle again as an example. We know that the arc- Now, can we parameterize the function γ(t) using the arc-length function itself? Lets use the circle again as an example. We know that the arc- length of a circle is s(t) = rt, or for short s = rt. Which means that , so the arc-length parameterization is:

slide-52
SLIDE 52

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Arc-length parameterization of the circle. Using the following holds: γ(s) = γ(t) = (x(t), y(t)) t γ(t) = (x(t), y(t))

slide-53
SLIDE 53

The Arc The Arc-

  • Length of a Curve

Length of a Curve

Now, we know that the arc-length is We also know that an arc-length parameterization γ(s) is one where the curve parameter is the arc-length γ Knowing these two facts, a property we can derive is that γ(s) is an arc-length parameterization of a curve if and only if

slide-54
SLIDE 54

The Arc The Arc-

  • Length of a Curve

Length of a Curve

γ(s) is an arc-length parameterization of a curve if and only if

slide-55
SLIDE 55

The Arc The Arc-

  • Length of a Curve

Length of a Curve

γ(s) is an arc-length parameterization of a curve if and only if This is a very useful property of arc-length parameterized curves, because the tangent -estimated because the tangent -estimated as the derivative of the curve- is always a unit-tangent!

slide-56
SLIDE 56

The Unit Normal Vector The Unit Normal Vector

Let’s look at the normal vector now

slide-57
SLIDE 57

The Unit Normal Vector The Unit Normal Vector

Today we learnt that the unit tangent is How do we estimate the Unit Normal?

slide-58
SLIDE 58

The Unit Normal Vector The Unit Normal Vector

Today we learnt that the unit tangent is As the orthogonal vector to T(t). As the orthogonal vector to T(t). The (unit) normal vector N(t) is the counter-clockwise rotation of T(t) by 90 degrees.

slide-59
SLIDE 59

The Unit Normal Vector The Unit Normal Vector

Today we learnt that the unit tangent is As the orthogonal vector to T(t). As the orthogonal vector to T(t). The (unit) normal vector N(t) is the counter-clockwise rotation of T(t) by 90 degrees.

slide-60
SLIDE 60

The Unit Normal Vector The Unit Normal Vector

Aside: what are orthogonal vectors? Vectors a and b are orthogonal if and only if their dot product is zero. So if a = [ax, ay], and b = [bx, by], then a and b are orthogonal if and only if: ax ay bx = axbx + ayby = 0 by

slide-61
SLIDE 61

The Moving Frame The Moving Frame

Putting the unit Tangent and the unit Normal together we get: The Moving Frame, defined as the pair The Moving Frame, defined as the pair

  • f orthogonal vectors {T(t), N(t)}
slide-62
SLIDE 62

The Moving Frame The Moving Frame

For example, the circle

slide-63
SLIDE 63

The Moving Frame The Moving Frame

Noteworthy:

  • 1. As we change the parameter t, the

moving frame rotates

  • 2. The faster the frame rotates, the

more “curved” the curve is

  • 3. The speed at which the moving

frame is rotating can be estimated frame is rotating can be estimated using a 1st order Taylor-series near t=0.

slide-64
SLIDE 64

Topic 4.2: Topic 4.2: Local analysis of 2D curve Local analysis of 2D curve patches patches patches patches

  • Representing 2D image curves

Representing 2D image curves

  • Estimating differential properties of 2D curves

Estimating differential properties of 2D curves

  • Tangent & normal vectors
  • The arc-length parameterization of a 2D curve
  • The curvature of a 2D curve
slide-65
SLIDE 65

Arc Arc-

  • Length Parameterization: T(s) & N(s)

Length Parameterization: T(s) & N(s)

We know that: The unit tangent is: And that the unit normal is the 90-deg counter-clockwise rotation: Note that we use ”s” as the parameter to denote arc-length parameterizations. And we arc-length parameterizations because the expressions are simpler (see last slide of this lecture for comparison).

slide-66
SLIDE 66

Defining the Curvature at a Point Defining the Curvature at a Point

  • Theorem. Definition of curvature.

If s is the arc-length of a curve, then

slide-67
SLIDE 67

Defining the Curvature at a Point Defining the Curvature at a Point

The traditional way of writing the 1st order Taylor approximation of the moving frame is: But if we use the curvature k(s), it becomes

slide-68
SLIDE 68

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-69
SLIDE 69

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-70
SLIDE 70

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-71
SLIDE 71

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-72
SLIDE 72

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-73
SLIDE 73

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-74
SLIDE 74

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-75
SLIDE 75

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes:

slide-76
SLIDE 76

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes: And the scaling constant is k(s)

slide-77
SLIDE 77

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes: And the scaling constant is k(s) What is this constant saying?

slide-78
SLIDE 78

Defining the Curvature at a Point Defining the Curvature at a Point

The 1st order Taylor-series approximation becomes: And the scaling constant is k(s) What is this constant saying? How much of the Normal do we need to add to the Tangent T(0) to approximate the tangent at T(t).

slide-79
SLIDE 79

Interpreting the Sign of the Curvature k(s) Interpreting the Sign of the Curvature k(s)

slide-80
SLIDE 80

Interpreting the Absolute Value of k(s) Interpreting the Absolute Value of k(s)

What is the intuition of the above equation then? The equation is saying, look we can approximate γ(s) (by approximating the Tangent and the Normal) using a circle that:

  • passes through γ(0),
  • passes through γ(0),
  • is tangent to T(0), and
  • passes through γ(s)
slide-81
SLIDE 81

The Arc The Arc-

  • Length Parameterization & k(s)

Length Parameterization & k(s)

Example: the curvature of a circle of radius r. Parametric equation: g(t) = r (cos t, sin t). Arc-length parameterization First derivative First derivative Second derivative

slide-82
SLIDE 82

The Circle of The Circle of Curvature k(s) Curvature k(s)

slide-83
SLIDE 83

k(t) for Non k(t) for Non-

  • Arc

Arc-

  • Length Parameterizations

Length Parameterizations