Method for quantifying relative accuracy of database segments

Information

  • Patent Grant
  • 6985639
  • Patent Number
    6,985,639
  • Date Filed
    Friday, April 26, 2002
    22 years ago
  • Date Issued
    Tuesday, January 10, 2006
    19 years ago
Abstract
A method for determining how closely two geometric shapes match is disclosed. After scaling the geometric shapes to equal length, corresponding pairs of measurement locations are determined along the linearly extending geometric shapes. Tangent vectors are determined at the measurement locations and the angle made by the tangent vectors associated with each corresponding pair of measurement locations is determined. After translating one of the geometric shapes by an angle equal to the mean of all the angles at the corresponding pairs of measurement locations, the area between the geometric shapes or the maximum deviation between the geometric shapes is determined. This is an indication of how closely the geometric shapes match. This indication can be used in various applications, including vehicle positioning, sign recognition, and evaluation of geographic database accuracy.
Description
BACKGROUND OF THE INVENTION

The present invention relates to comparison of geometric shapes and more particularly, the present invention relates to a way to measure how closely one representation of a segment matches another representation of the segment.


The need to compare geometric shapes arises in various applications relating to the use of data representations of geographic features. One such application is the measurement of geographic database accuracy. Other applications include vehicle positioning and road sign recognition.


One method for measuring shape accuracy involves measuring the unsigned area between a sampled segment and a ground truth segment. Referring to FIG. 1, a ground truth segment 10 is shown as a dashed line and a sampled segment 12 is shown as a solid line. Areas between the ground truth segment 10 and the sampled segment are indicated as A1, A2, and A3. According to this method, the larger the area between the segments, the greater is the deviation between the segments.


Another method for measuring shape accuracy is to measure the maximum deviation between a sampled segment and a ground truth segment. Referring to FIG. 2, a ground truth segment 20 is shown as a dashed line and a sampled segment 22 is shown as a solid line. Note that in order to obtain a true measure of a distance between the two segments, the segments should be aligned to minimize the area. However, this method does not specify how this alignment should be carried out.


There are at least two possible approaches for aligning a sampled segment and a ground truth segment so that the relative accuracy between them can be measured. FIG. 3 shows a first approach for aligning a sampled segment and a ground truth segment. According to this approach, the segments are first scaled so that the starting and ending nodes (i.e., endpoints) of the segments coincide. As shown graphically in FIG. 3, the segments are scaled so that the starting and ending nodes correspond to (0,0) and (1,0) respectively. Then, the unsigned area between the two segments is computed. This area is a measure of the relative accuracy between the two segments.


This approach has the disadvantage that it may not always yield an accurate measure of relative accuracy because aligning the segments as shown in FIG. 3 may not be the optimal alignment that yields the minimum area. For example, consider the ground truth segment 40 and the sampled segment 42, shown in FIG. 4. These two segments have a similar shape except at one of the endpoints. When they are aligned so that their starting and ending nodes correspond to (0,0) and (1,0) respectively, as described in the first approach, the alignment shown in FIG. 5 is obtained. As shown in FIG. 5, a relatively large area exists between the two segments. The segments 40 and 42 should be aligned as shown in FIG. 6 to yield a truer measure of relative accuracy.


A second approach for aligning a sampled segment and a ground truth segment is illustrated in FIGS. 7A, 7B and 7C. According to this approach, the features are first scaled so that the starting and ending nodes of each feature correspond to (0,0) and (1,0) respectively, as in the previous approach. Then, the unsigned area or deviation between the two segments is computed. Then, the sampled segment 42 is rotated through an incremental angle Δθ with respect to the ground truth segment 40 and the unsigned area or deviation between the two segments is computed again. The steps of rotating and computing are repeated successively until all values of −π≦θ≦π have been traversed, as indicated in FIGS. 7A, 7B, and 7C. The minimum area obtained using this approach is a measure of the relative accuracy between the two segments. The accuracy of this approach is a function of the angle increment Δθ. The smaller the angle increment, the greater is the accuracy of this approach. Although this approach yields an accurate measure of relative accuracy between a sampled segment and a ground truth segment, it is computationally intensive.


Accordingly, there exists a need for an improved way for aligning a pair of shapes in a manner which is computationally non-intensive and consistent for all segments.


SUMMARY OF THE INVENTION

To address these and other objectives, the present invention includes a method for comparing two geometric shapes to each other. After scaling the geometric shapes to equal length (if necessary), corresponding pairs of measurement locations are determined along the geometric shapes. Tangent vectors are determined at the measurement locations and the angle made by the tangent vectors associated with each corresponding pair of measurement locations is determined. After translating one of the geometric shapes by an angle equal to the mean of all the angles at the corresponding pairs of measurement locations, the area between the geometric shapes or the maximum deviation between the geometric shapes is determined. This is an indication of how closely the geometric shapes match. This indication can be used in various applications, including vehicle positioning, sign recognition, and evaluation of geographic database accuracy.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows a prior art method for describing the relative accuracy of a ground truth segment and a sampled segment.



FIG. 2 shows another prior art method for describing the relative accuracy of a ground truth segment and a sampled segment.



FIG. 3 shows a prior art approach for aligning a sampled segment with a ground truth segment so that the relative accuracy can be determined.



FIG. 4 shows a sampled segment and a ground truth segment to be compared by a prior art method.



FIG. 5 shows a prior art approach for aligning the sampled segment and the ground truth segment shown in FIG. 4.



FIG. 6 shows another way to align the sampled segment and ground truth segment shown in FIG. 5.



FIGS. 7A, 7B, and 7C show another prior art approach for aligning the sampled segment and the ground truth segment shown in FIG. 4.



FIG. 8 illustrates a step according to an embodiment of the present invention for aligning two geometric shapes.



FIG. 9 illustrates another step in the embodiment shown in FIG. 8.





DETAILED DESCRIPTION OF THE PRESENTLY PREFERRED EMBODIMENTS

A present embodiment provides a consistent method for defining and assessing relative accuracy of geometric shapes and in particular, geometric shapes that are representations of road segments. FIG. 8 shows a first (or ground truth) segment 50 and a second (or sampled) segment 52. According to this embodiment, the segments 50 and 52 are scaled to a unit length (or equal length) and a nominal starting point is designated on each segment. Then, corresponding locations (P0, P1 . . . on segment 50 and Q0, Q1 . . . on segment 52) are determined along the two segments. The corresponding locations are an equal distance from their respective nominal starting points. Then, tangent vectors are computed at these corresponding locations. In FIG. 8, the tangent vectors on the ground truth segment 50 are labeled tiG and the tangent vectors on the sampled segment 52 are labeled tiS.


The angle between each corresponding pair of tangent vectors is then computed. The angle between each pair of ground truth and sampled segment tangent vectors is defined as the angle through which the tangent of the sampled segment is rotated so that it aligns with the corresponding tangent to the ground truth segment. WLOG, a clockwise rotation is defined as positive and a counterclockwise rotation is defined as negative. The angle is given by
θi=cos-1(tiG_·tiS_tiG_tiS_)


Then, the mean of the computed angles is computed. This is given by
θ_=n-1i=0θi


Note that this angle {overscore (θ)} defines the mean rotation between the ground truth and sampled segments 50 and 52.


The mean rotation between the ground truth segment 50 and the sampled segment 52 can be removed by rotating the sampled segment 52 through an angle of {overscore (θ)} to align with the corresponding ground truth segment 52. The sampled segment 52 is then translated so that its starting point coincides with the starting point of the ground truth segment 50. Once this is done, the area between the two segments or the maximum deviation between the two segments can be determined.


This method of aligning the segments can be carried out in a consistent, intuitive way for all of the segments in a database without the need for a brute force computation.


It is intended that the foregoing detailed description be regarded as illustrative rather than limiting and that it is understood that the following claims including all equivalents are intended to define the scope of the invention.

Claims
  • 1. A method for aligning a first linearly extending geometric shape and a second linearly extending geometric shape so that a comparison can be made as to how closely they match, the method comprising: scaling at least one of the linearly extending geometric shapes, if necessary, so that the first linearly extending geometric shape has a length equal to the second linearly extending geometric shape;determining measurement locations along the first linearly extending geometric shape and corresponding measurement locations along the second linearly extending geometric shape,wherein each measurement location on the first linearly extending geometric shape is located at a specific respective distance from a nominal starting point on the first linearly extending geometric shape,wherein each measurement location on the second linearly extending geometric shape is located at a specific respective distance from a nominal starting point on the second linearly extending geometric shape, andwherein the specific respective distance of each measurement location along the first linearly extending geometric shape is equal to the specific respective distance of each corresponding measurement location along the second linearly extending geometric shape;determining tangent vectors along each linearly extending geometric shape at each measurement location;for each measurement location along the first linearly extending geometric shape, determining an angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location;computing a mean of the angles;rotating the second linearly extending geometric shape by the mean of the angles; andtranslating the second linearly extending geometric shape so that one end thereof coincides with a corresponding end of the first linearly extending geometric shape, if necessary,whereby after translating the first linearly extending geometric shape and the second linearly extending geometric shape can be compared.
  • 2. The method of claim 1 wherein the first linearly extending geometric shape and the second linearly extending geometric shape can be compared by computing an area between the first linearly extending geometric shape and the second linearly extending geometric shape.
  • 3. The method of claim 1 wherein the first linearly extending geometric shape and the second linearly extending geometric shape can be compared by computing a maximum deviation between the first linearly extending geometric shape and the second linearly extending geometric shape.
  • 4. The method of claim 1 wherein said first linearly extending geometric shape and said second linearly extending geometric shape are representations of the same road segment.
  • 5. The method of claim 1 wherein one of the linearly extending geometric shapes is a sampled representation of a road segment and the other of the linearly extending geometric shapes is a ground truth representation of the road segment.
  • 6. The method of claim 1 wherein the angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location is given by θi=cos-1⁡(tiG_·tiS_tiG_⁢tiS_)where tiG is the tangent vector on the first linearly extending geometric shape at a measurement location i and tiS is the tangent vector on the second linearly extending geometric shape at the corresponding measurement location i on the second linearly extending geometric shape, and θi is the angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location i and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location i on the second linearly extending geometric shape.
  • 7. The method of claim 1 wherein the mean of the angles is given by θ_=∑n-1i=0⁢θiwhere θi is the angle between the tangent vector determined with respect to the first linearly extending geometric shape at each measurement location i and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location and θ is the mean of the computed angles.
  • 8. A method of comparing a first linearly extending geometric shape and a second linearly extending geometric shape comprising: scaling at least one of the linearly extending geometric shapes, if necessary, so that the first linearly extending geometric shape has a length equal to the second linearly extending geometric shape;determining measurement locations along the first linearly extending geometric shape and corresponding measurement locations along the second linearly extending geometric shape,wherein each measurement location on the first linearly extending geometric shape is located at a specific respective distance from a nominal starting point on the first linearly extending geometric shape, andwherein each measurement location on the second linearly extending geometric shape is located at a specific respective distance from a nominal starting point on the second linearly extending geometric shape, andwherein the specific respective distance of each measurement location along the first linearly extending geometric shape is equal to the specific respective distance of each corresponding measurement location along the second linearly extending geometric shape;determining tangent vectors along each linearly extending geometric shape at each measurement location;for each measurement location along the first linearly extending geometric shape, determining an angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location;computing a mean of the angles;rotating the second linearly extending geometric shape by the mean of the angles;translating the second linearly extending geometric shape so that one end thereof coincides with a corresponding end of the first linearly extending geometric shape, if necessary; andcomputing an area between the first linearly extending geometric shape and the second linearly extending geometric shape,whereby the area indicates how the second linearly extending relatively geometric shape matches the first linearly extending geometric shape.
  • 9. The method of claim 8 wherein said first linearly extending geometric shape and said second linearly extending geometric shape are representations of the same road segment.
  • 10. The method of claim 8 wherein one of the linearly extending geometric shapes is a sampled representation of a road segment and the other of the linearly extending geometric shapes is a ground truth representation of the road segment.
  • 11. The method of claim 8 wherein the angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location is given by θi=cos-1⁡(tiG_·tiS_tiG_⁢tiS_)where tiG is the tangent vector on the first linearly extending geometric shape at a measurement location i and tiS is the tangent vector on the second linearly extending geometric shape at the corresponding measurement location i on the second linearly extending geometric shape, and θi is the angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location i and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location i on the second linearly extending geometric shape.
  • 12. The method of claim 8 wherein the mean of the angles is given by θ_=∑n-1i=0⁢θiwhere θi is the angle between the tangent vector determined with respect to the first linearly extending geometric shape at each measurement location i and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location and θ is the mean of the computed angles.
  • 13. A method of comparing a first linearly extending geometric shape and a second linearly extending geometric shape comprising: scaling at least one of the linearly extending geometric shapes, if necessary, so that the first linearly extending geometric shape has a length equal to the second linearly extending geometric shape;determining measurement locations along the first linearly extending geometric shape and corresponding measurement locations along the second linearly extending geometric shape,wherein each measurement location on the first linearly extending geometric shape is located at a specific respective distance from a nominal starting point on the first linearly extending geometric shape,wherein each measurement location on the second linearly extending geometric shape is located at a specific respective distance from a nominal starting point on the second linearly extending geometric shape, andwherein the specific respective distance of each measurement location along the first linearly extending geometric shape is equal to the specific respective distance of each corresponding measurement location along the second linearly extending geometric shape;determining tangent vectors along each linearly extending geometric shape at each measurement location;for each measurement location along the first linearly extending geometric shape, determining an angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location;computing a mean of the angles;rotating the second linearly extending geometric shape by the mean of the angles;translating the second linearly extending geometric shape so that one end thereof coincides with a corresponding end of the first linearly extending geometric shape, if necessary; andcomputing a maximum deviation between the two geometric shapes,whereby the maximum deviation indicates how the second linearly extending geometric shape relatively matches the first linearly extending geometric shape.
  • 14. The method of claim 13 wherein said first linearly extending geometric shape and said second linearly extending geometric shape are representations of the same road segment.
  • 15. The method of claim 13 wherein one of the linearly extending geometric shapes is a sampled representation of a road segment and the other of the linearly extending geometric shapes is a ground truth representation of the road segment.
  • 16. The method of claim 13 wherein the angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location is given by θi=cos-1⁡(tiG_·tiS_tiG_⁢tiS_)where tiG is the tangent vector on the first linearly extending geometric shape at a measurement location i and tiS is the tangent vector on the second linearly extending geometric shape at the corresponding measurement location i on the second linearly extending geometric shape, and θi is the angle between the tangent vector determined with respect to the first linearly extending geometric shape at the measurement location i and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location i on the second linearly extending geometric shape.
  • 17. The method of claim 13 wherein the mean of the angles is given by θ_=∑n-1i=0⁢θiwhere θi is the angle between the tangent vector determined with respect to the first linearly extending geometric shape at each measurement location i and the tangent vector determined with respect to the second linearly extending geometric shape at the corresponding measurement location and θ is the mean of the computed angles.
US Referenced Citations (17)
Number Name Date Kind
4144571 Webber Mar 1979 A
5065348 Kuragano et al. Nov 1991 A
5438517 Sennott et al. Aug 1995 A
5470233 Fruchterman et al. Nov 1995 A
5497451 Holmes Mar 1996 A
5546107 Deretsky et al. Aug 1996 A
5566288 Koerhsen Oct 1996 A
5590261 Sclaroff et al. Dec 1996 A
5621817 Bozinovic et al. Apr 1997 A
5742924 Nakayama Apr 1998 A
6029173 Meek et al. Feb 2000 A
6088663 Wang Jul 2000 A
6138084 Mine Oct 2000 A
6263089 Otsuka et al. Jul 2001 B1
6532304 Liu et al. Mar 2003 B1
6636217 Hill Oct 2003 B1
6718062 Zhang et al. Apr 2004 B1
Foreign Referenced Citations (3)
Number Date Country
0 394 517 Jun 1993 EP
0 807 803 Nov 1997 EP
WO 9532483 Nov 1995 WO