mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 19:44:14 +08:00
Enclose code in ccalib namespace. Switch defines to consts.
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace cv{
|
namespace cv{ namespace ccalib{
|
||||||
|
|
||||||
class CV_EXPORTS CustomPattern : public Algorithm
|
class CV_EXPORTS CustomPattern : public Algorithm
|
||||||
{
|
{
|
||||||
@@ -144,6 +144,6 @@ private:
|
|||||||
void refineKeypointsPos(const Mat& img, std::vector<KeyPoint>& kp);
|
void refineKeypointsPos(const Mat& img, std::vector<KeyPoint>& kp);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // cv
|
}} // namespace ccalib, cv
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -55,17 +55,17 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
namespace cv{ namespace ccalib{
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#define MIN_CONTOUR_AREA_PX 100
|
const int MIN_CONTOUR_AREA_PX = 100;
|
||||||
#define MIN_CONTOUR_AREA_RATIO 0.2
|
const float MIN_CONTOUR_AREA_RATIO = 0.2;
|
||||||
#define MAX_CONTOUR_AREA_RATIO 5
|
const float MAX_CONTOUR_AREA_RATIO = 5.0;
|
||||||
|
|
||||||
#define MIN_POINTS_FOR_H 10
|
const int MIN_POINTS_FOR_H = 10;
|
||||||
|
|
||||||
#define MAX_PROJ_ERROR_PX 5.0
|
const float MAX_PROJ_ERROR_PX = 5.0;
|
||||||
|
|
||||||
namespace cv{
|
|
||||||
|
|
||||||
CustomPattern::CustomPattern()
|
CustomPattern::CustomPattern()
|
||||||
{
|
{
|
||||||
@@ -487,8 +487,8 @@ void CustomPattern::drawOrientation(InputOutputArray image, InputArray tvec, Inp
|
|||||||
img.copyTo(image);
|
img.copyTo(image);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace cv
|
}} // namespace ccalib, cv
|
||||||
|
|
||||||
#endif //_CPP
|
#endif // __OPENCV_CCALIB_CPP__
|
||||||
#endif // cplusplus
|
#endif // cplusplus
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user