Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
c5b57d0c
Commit
c5b57d0c
authored
Sep 05, 2014
by
Daniel Angelov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enclose code in ccalib namespace. Switch defines to consts.
parent
9fb1a6db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
ccalib.hpp
modules/ccalib/include/opencv2/ccalib.hpp
+2
-2
ccalib.cpp
modules/ccalib/src/ccalib.cpp
+9
-9
No files found.
modules/ccalib/include/opencv2/ccalib.hpp
View file @
c5b57d0c
...
...
@@ -49,7 +49,7 @@
#include <vector>
namespace
cv
{
namespace
cv
{
namespace
ccalib
{
class
CV_EXPORTS
CustomPattern
:
public
Algorithm
{
...
...
@@ -144,6 +144,6 @@ private:
void
refineKeypointsPos
(
const
Mat
&
img
,
std
::
vector
<
KeyPoint
>&
kp
);
};
}
//
cv
}
}
// namespace ccalib,
cv
#endif
modules/ccalib/src/ccalib.cpp
View file @
c5b57d0c
...
...
@@ -55,17 +55,17 @@
#include <vector>
#include <cstring>
using
namespace
std
;
namespace
cv
{
namespace
ccalib
{
#define MIN_CONTOUR_AREA_PX 100
#define MIN_CONTOUR_AREA_RATIO 0.2
#define MAX_CONTOUR_AREA_RATIO 5
using
namespace
std
;
#define MIN_POINTS_FOR_H 10
const
int
MIN_CONTOUR_AREA_PX
=
100
;
const
float
MIN_CONTOUR_AREA_RATIO
=
0.2
;
const
float
MAX_CONTOUR_AREA_RATIO
=
5.0
;
#define MAX_PROJ_ERROR_PX 5.0
const
int
MIN_POINTS_FOR_H
=
10
;
namespace
cv
{
const
float
MAX_PROJ_ERROR_PX
=
5.0
;
CustomPattern
::
CustomPattern
()
{
...
...
@@ -487,8 +487,8 @@ void CustomPattern::drawOrientation(InputOutputArray image, InputArray tvec, Inp
img
.
copyTo
(
image
);
}
}
// namespace
cv
}
}
// namespace ccalib,
cv
#endif //
_CPP
#endif //
__OPENCV_CCALIB_CPP__
#endif // cplusplus
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