Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
91c35a7d
Commit
91c35a7d
authored
Mar 20, 2018
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated handling of collinear edges while searching for intersection.
parent
fb6db3dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
min_enclosing_triangle.cpp
modules/imgproc/src/min_enclosing_triangle.cpp
+4
-3
No files found.
modules/imgproc/src/min_enclosing_triangle.cpp
View file @
91c35a7d
...
@@ -988,14 +988,15 @@ static bool findGammaIntersectionPoints(const std::vector<cv::Point2f> &polygon,
...
@@ -988,14 +988,15 @@ static bool findGammaIntersectionPoints(const std::vector<cv::Point2f> &polygon,
double
sideCExtraParam
=
2
*
polygonPointHeight
*
distFormulaDenom
;
double
sideCExtraParam
=
2
*
polygonPointHeight
*
distFormulaDenom
;
// Get intersection points if they exist or if lines are identical
// Get intersection points if they exist or if lines are identical
if
(
!
areIntersectingLines
(
side1Params
,
side2Params
,
sideCExtraParam
,
intersectionPoint1
,
intersectionPoint2
))
{
if
(
areIntersectingLines
(
side1Params
,
side2Params
,
sideCExtraParam
,
intersectionPoint1
,
intersectionPoint2
))
{
return
fals
e
;
return
tru
e
;
}
else
if
(
areIdenticalLines
(
side1Params
,
side2Params
,
sideCExtraParam
))
{
}
else
if
(
areIdenticalLines
(
side1Params
,
side2Params
,
sideCExtraParam
))
{
intersectionPoint1
=
side1StartVertex
;
intersectionPoint1
=
side1StartVertex
;
intersectionPoint2
=
side1EndVertex
;
intersectionPoint2
=
side1EndVertex
;
return
true
;
}
}
return
tru
e
;
return
fals
e
;
}
}
//! Check if the given lines are identical or not
//! Check if the given lines are identical or not
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment