1 / 15

Slope and Curvature Density Functions

Learn how slope and curvature density functions are used in object recognition through histograms of slopes and curvatures in contours. Explore the efficiency of curvature representation for rotation-invariant object recognition and the computation of signatures for position, rotation, and scale invariance. Discover the significance of Fourier transforms in contour representation for shape recognition in image processing.

rogersj
Download Presentation

Slope and Curvature Density Functions

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Slope and Curvature Density Functions • The slope density function is the histogram of all slopes (tangent angles) in a contour. • This function can be used for recognizing objects. • We can also use the derivative of the slope representation, which we can call the curvature representation. • Its histogram is the curvature density function. • The curvature density function can also be used to recognize objects. • Its advantage is its rotation invariance, i.e., matching two curvature density functions determines similarity even if the two objects have different orientations. Computer Vision Lecture 14: Shape Representation II

  2. 90 180 0 Density Density Density Density 270 Square Diamond 0 0 0 0 90 90 90 90 180 180 180 180 270 270 270 270 360 360 360 360 Angle Angle Angle Angle Circle Ellipse Examples of Slope Density Functions Computer Vision Lecture 14: Shape Representation II

  3. Signature • Another popular method of representing shape is called the signature. • In order to compute the signature of a contour, we choose an (arbitrary) starting point A on it. • Then we measure the shortest distance from A to any other point on the contour, measured in perpendicular direction to the tangent at point A. • Now we keep moving along the contour while measuring this distance. • The resulting measure of distance as a function of path length is the signature of the contour. Computer Vision Lecture 14: Shape Representation II

  4. Signature • Notice that if you normalize the path length, the signature representation is position, rotation, and scale invariant. • Smoothing of the contour before computing its signature may be necessary for a useful computation of the tangent. Computer Vision Lecture 14: Shape Representation II

  5. Bending Energy Computer Vision Lecture 14: Shape Representation II

  6. Region Skeleton Computer Vision Lecture 14: Shape Representation II

  7. Region Skeleton Computer Vision Lecture 14: Shape Representation II

  8. Region Skeleton Computer Vision Lecture 14: Shape Representation II

  9. Fourier Transform of Boundaries • As we discussed before, a 2D contour can be represented by two 1D functions of a parameter s. • Let S be our (arbitrary) starting point on the contour. • Let us move in counterclockwise direction (for example, we can use a boundary-following algorithm to do that). • In our discrete (pixel) space, the points of the contour can then be specified by [v[s], h[s]], • where s is the distance from S (measured along the contour) • and v and h are the functions describing our vertical and horizontal position on the contour for a given s. Computer Vision Lecture 14: Shape Representation II

  10. Fourier Transform of Boundaries Computer Vision Lecture 14: Shape Representation II

  11. Fourier Transform of Boundaries Computer Vision Lecture 14: Shape Representation II

  12. Fourier Transform of Boundaries • Obviously, both v[s] and h[s] are periodic functions, as we will pass the same points over and over again in constant time intervals. • This gives us a brilliant idea: Why not represent the contour in Fourier space? • In fact, this can be done. We simply compute separate 1D Fourier transforms for v[s] and h[s]. • When we convert the result into the magnitude/phase representation, the transform gives us the functions • Mv[l],Mh[l],v[l],and h[l] • for frequency l ranging from 0 (offset) to s/2. Computer Vision Lecture 14: Shape Representation II

  13. Fourier Transform of Boundaries • As with images, higher frequencies do not usually contribute much to a function and can be disregarded without any noticeable consequences. • Let us see what happens when we delete all functions above frequency lmax and perform the inverse Fourier transform. • Will the original contour be conserved even for small values of lmax? Computer Vision Lecture 14: Shape Representation II

  14. Fourier Transform of Boundaries Computer Vision Lecture 14: Shape Representation II

  15. Fourier Transform of Boundaries Computer Vision Lecture 14: Shape Representation II

More Related