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
964dda2e
Commit
964dda2e
authored
Aug 29, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9503 from sovrasov:convex_hull_disable_inplace
parents
4ee30344
91e56abc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
imgproc.hpp
modules/imgproc/include/opencv2/imgproc.hpp
+2
-0
convhull.cpp
modules/imgproc/src/convhull.cpp
+1
-0
No files found.
modules/imgproc/include/opencv2/imgproc.hpp
View file @
964dda2e
...
@@ -3977,6 +3977,8 @@ returns convex hull points. Otherwise, it returns indices of the convex hull poi
...
@@ -3977,6 +3977,8 @@ returns convex hull points. Otherwise, it returns indices of the convex hull poi
output array is std::vector, the flag is ignored, and the output depends on the type of the
output array is std::vector, the flag is ignored, and the output depends on the type of the
vector: std::vector\<int\> implies returnPoints=false, std::vector\<Point\> implies
vector: std::vector\<int\> implies returnPoints=false, std::vector\<Point\> implies
returnPoints=true.
returnPoints=true.
@note `points` and `hull` should be different arrays, inplace processing isn't supported.
*/
*/
CV_EXPORTS_W
void
convexHull
(
InputArray
points
,
OutputArray
hull
,
CV_EXPORTS_W
void
convexHull
(
InputArray
points
,
OutputArray
hull
,
bool
clockwise
=
false
,
bool
returnPoints
=
true
);
bool
clockwise
=
false
,
bool
returnPoints
=
true
);
...
...
modules/imgproc/src/convhull.cpp
View file @
964dda2e
...
@@ -130,6 +130,7 @@ void convexHull( InputArray _points, OutputArray _hull, bool clockwise, bool ret
...
@@ -130,6 +130,7 @@ void convexHull( InputArray _points, OutputArray _hull, bool clockwise, bool ret
{
{
CV_INSTRUMENT_REGION
()
CV_INSTRUMENT_REGION
()
CV_Assert
(
_points
.
getObj
()
!=
_hull
.
getObj
());
Mat
points
=
_points
.
getMat
();
Mat
points
=
_points
.
getMat
();
int
i
,
total
=
points
.
checkVector
(
2
),
depth
=
points
.
depth
(),
nout
=
0
;
int
i
,
total
=
points
.
checkVector
(
2
),
depth
=
points
.
depth
(),
nout
=
0
;
int
miny_ind
=
0
,
maxy_ind
=
0
;
int
miny_ind
=
0
,
maxy_ind
=
0
;
...
...
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