Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pal] Improved test for candidate against polygon obstacles
Previous test was just checking point in polygon for the corner, mid points and center. This test was not sufficient for narrow or small polygons which were not covered by these points but were still covering parts of the label candidate. Now, the area of the intersection between the obstacle polygon and the label candidate is used to calculate the obstacle cost.
- Loading branch information
1 parent
fe3e07e
commit f9fa979
Showing
8 changed files
with
388 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2.58 KB
...lacement_narrow_polygon_obstacle/sp_point_placement_narrow_polygon_obstacle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.06 KB
...ent_narrow_polygon_obstacle/sp_point_placement_narrow_polygon_obstacle_mask.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.