mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 11:03:03 +08:00

* Added mcc to opencv modules * Removed color correction module * Updated parameters return type * Added python sample for macbeth_chart_detection * Added models.yml support to samples * Removed unnecessary headers and classes * fixed datatype conversion * fixed datatype conversion * Cleaned headers and added reference/actual colors to samples * Added mcc tutorial * fixed datatype and header * replaced unsigned with int * Aligned actual and reference color function, added imread * Fixed shadow variable * Updated samples * Added last frame colors prints * updated detector class * Added getter functions and useNet function * Refactoring * Fixes in test * fixed infinite divison issue
30 lines
728 B
C++
30 lines
728 B
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
|
|
#include "perf_precomp.hpp"
|
|
|
|
namespace opencv_test
|
|
{
|
|
namespace
|
|
{
|
|
|
|
using namespace std;
|
|
using namespace cv::mcc;
|
|
|
|
PERF_TEST(CV_mcc_perf, detect) {
|
|
string path = cvtest::findDataFile("cv/mcc/mcc_ccm_test.jpg");
|
|
Mat img = imread(path, IMREAD_COLOR);
|
|
Ptr<CCheckerDetector> detector = CCheckerDetector::create();
|
|
detector->setColorChartType(MCC24);
|
|
|
|
// detect MCC24 board
|
|
TEST_CYCLE() {
|
|
ASSERT_TRUE(detector->process(img, 1));
|
|
}
|
|
SANITY_CHECK_NOTHING();
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace opencv_test
|