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
c3f8fc41
Commit
c3f8fc41
authored
Feb 12, 2015
by
Dmitry-Me
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parameters should have been passed by reference
parent
5466e321
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
circlesgrid.cpp
modules/calib3d/src/circlesgrid.cpp
+2
-2
circlesgrid.hpp
modules/calib3d/src/circlesgrid.hpp
+2
-2
No files found.
modules/calib3d/src/circlesgrid.cpp
View file @
c3f8fc41
...
...
@@ -66,7 +66,7 @@ void drawPoints(const std::vector<Point2f> &points, Mat &outImage, int radius =
}
#endif
void
CirclesGridClusterFinder
::
hierarchicalClustering
(
const
std
::
vector
<
Point2f
>
points
,
const
Size
&
patternSz
,
std
::
vector
<
Point2f
>
&
patternPoints
)
void
CirclesGridClusterFinder
::
hierarchicalClustering
(
const
std
::
vector
<
Point2f
>
&
points
,
const
Size
&
patternSz
,
std
::
vector
<
Point2f
>
&
patternPoints
)
{
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
hierarchicalClustering
(
points
,
patternSz
,
patternPoints
))
...
...
@@ -135,7 +135,7 @@ void CirclesGridClusterFinder::hierarchicalClustering(const std::vector<Point2f>
}
}
void
CirclesGridClusterFinder
::
findGrid
(
const
std
::
vector
<
cv
::
Point2f
>
points
,
cv
::
Size
_patternSize
,
std
::
vector
<
Point2f
>&
centers
)
void
CirclesGridClusterFinder
::
findGrid
(
const
std
::
vector
<
cv
::
Point2f
>
&
points
,
cv
::
Size
_patternSize
,
std
::
vector
<
Point2f
>&
centers
)
{
patternSize
=
_patternSize
;
centers
.
clear
();
...
...
modules/calib3d/src/circlesgrid.hpp
View file @
c3f8fc41
...
...
@@ -62,10 +62,10 @@ public:
squareSize
=
1.0
f
;
maxRectifiedDistance
=
(
float
)(
squareSize
/
2.0
);
}
void
findGrid
(
const
std
::
vector
<
cv
::
Point2f
>
points
,
cv
::
Size
patternSize
,
std
::
vector
<
cv
::
Point2f
>&
centers
);
void
findGrid
(
const
std
::
vector
<
cv
::
Point2f
>
&
points
,
cv
::
Size
patternSize
,
std
::
vector
<
cv
::
Point2f
>&
centers
);
//cluster 2d points by geometric coordinates
void
hierarchicalClustering
(
const
std
::
vector
<
cv
::
Point2f
>
points
,
const
cv
::
Size
&
patternSize
,
std
::
vector
<
cv
::
Point2f
>
&
patternPoints
);
void
hierarchicalClustering
(
const
std
::
vector
<
cv
::
Point2f
>
&
points
,
const
cv
::
Size
&
patternSize
,
std
::
vector
<
cv
::
Point2f
>
&
patternPoints
);
private
:
void
findCorners
(
const
std
::
vector
<
cv
::
Point2f
>
&
hull2f
,
std
::
vector
<
cv
::
Point2f
>
&
corners
);
void
findOutsideCorners
(
const
std
::
vector
<
cv
::
Point2f
>
&
corners
,
std
::
vector
<
cv
::
Point2f
>
&
outsideCorners
);
...
...
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