#ifndef __OPENCV_FEATURES_2D_HPP__
#define __OPENCV_FEATURES_2D_HPP__
-#include "opencv2/flann/miniflann.hpp"
-
#ifdef __cplusplus
#include "opencv2/core.hpp"
+#include "opencv2/flann/miniflann.hpp"
#include <limits>
namespace cv
#ifndef _OPENCV_FLANN_HPP_
#define _OPENCV_FLANN_HPP_
-#ifdef __cplusplus
-
-#include "opencv2/core/types_c.h"
#include "opencv2/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/flann/flann_base.hpp"
} } // namespace cv::flann
-#endif // __cplusplus
-
#endif
#ifndef _OPENCV_MINIFLANN_HPP_
#define _OPENCV_MINIFLANN_HPP_
-#ifdef __cplusplus
-
#include "opencv2/core.hpp"
#include "opencv2/flann/defines.h"
} } // namespace cv::flann
-#endif // __cplusplus
-
#endif
int errors = 0;
caller.key_size = 0;
- errors += run_test_case(CV_StsBadArg, "key_size is zero", caller);
+ errors += run_test_case(Error::StsBadArg, "key_size is zero", caller);
caller.key_size = static_cast<int>(sizeof(size_t) * CHAR_BIT);
- errors += run_test_case(CV_StsBadArg, "key_size is too big", caller);
+ errors += run_test_case(Error::StsBadArg, "key_size is too big", caller);
caller.key_size += cvtest::randInt(rng) % 100;
- errors += run_test_case(CV_StsBadArg, "key_size is too big", caller);
+ errors += run_test_case(Error::StsBadArg, "key_size is too big", caller);
if (errors != 0)
ts->set_failed_test_info(cvtest::TS::FAIL_MISMATCH);