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
Another method for measuring shape accuracy is to measure the maximum deviation between a sampled segment and a ground truth segment. Referring to
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.
This approach has the disadvantage that it may not always yield an accurate measure of relative accuracy because aligning the segments as shown in
A second approach for aligning a sampled segment and a ground truth segment is illustrated in
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.
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.
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.
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
Then, the mean of the computed angles is computed. This is given by
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.
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 |
Number | Date | Country |
---|---|---|
0 394 517 | Jun 1993 | EP |
0 807 803 | Nov 1997 | EP |
WO 9532483 | Nov 1995 | WO |