mirror of
https://github.com/opencv/opencv.git
synced 2025-01-20 15:59:24 +08:00
remove print
This commit is contained in:
parent
a253ff44b8
commit
f622901518
@ -6,7 +6,7 @@ set(debug_modules "")
|
||||
if(DEBUG_opencv_calib3d)
|
||||
list(APPEND debug_modules opencv_highgui)
|
||||
endif()
|
||||
ocv_define_module(calib3d opencv_imgproc opencv_features2d opencv_flann opencv_highgui ${debug_modules}
|
||||
ocv_define_module(calib3d opencv_imgproc opencv_features2d opencv_flann ${debug_modules}
|
||||
WRAP java objc python js
|
||||
)
|
||||
ocv_target_link_libraries(${the_module} ${LAPACK_LIBRARIES})
|
||||
|
@ -72,7 +72,6 @@
|
||||
#include "precomp.hpp"
|
||||
#include "circlesgrid.hpp"
|
||||
#include "opencv2/flann.hpp"
|
||||
#include "opencv2/highgui.hpp"
|
||||
|
||||
#include <stack>
|
||||
|
||||
@ -2243,8 +2242,9 @@ bool findCirclesGridNew(InputArray _image, Size patternSize,
|
||||
}
|
||||
|
||||
int mainCornerId = getMainCorner(cornerIds, points, pointTypes, patternSize, isSymmetricGrid);
|
||||
imshow("image", image);
|
||||
waitKey(0);
|
||||
cv::circle(image, points[mainCornerId], 25, Scalar(100, 100, 100), 5);
|
||||
//imshow("image", image);
|
||||
//waitKey(0);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -43,7 +43,6 @@
|
||||
#include "precomp.hpp"
|
||||
#include "circlesgrid.hpp"
|
||||
#include <limits>
|
||||
#include "opencv2/highgui.hpp"
|
||||
|
||||
// Requires CMake flag: DEBUG_opencv_calib3d=ON
|
||||
//#define DEBUG_CIRCLES
|
||||
@ -628,45 +627,16 @@ bool CirclesGridFinder::findHoles()
|
||||
{
|
||||
std::vector<Point2f> vectors, tmpVectors, filteredVectors, basis;
|
||||
Graph rng(0);
|
||||
|
||||
Mat tmp = img.clone();
|
||||
computeRNG(rng, tmpVectors, &tmp);
|
||||
|
||||
cv::imshow("computeRNG", tmp);
|
||||
//cv::waitKey(0);
|
||||
|
||||
computeRNG(rng, tmpVectors);
|
||||
rng2gridGraph(rng, vectors);
|
||||
filterOutliersByDensity(vectors, filteredVectors);
|
||||
std::vector<Graph> basisGraphs;
|
||||
findBasis(filteredVectors, basis, basisGraphs); // filteredVectors, basis, basisGraphs
|
||||
|
||||
tmp = img.clone();
|
||||
drawBasisGraphs(basisGraphs, tmp, true, true);
|
||||
cv::imshow("drawBasisGraphs", tmp);
|
||||
//cv::waitKey(0);
|
||||
|
||||
findBasis(filteredVectors, basis, basisGraphs);
|
||||
findMCS(basis, basisGraphs);
|
||||
|
||||
tmp = img.clone();
|
||||
drawBasisGraphs(basisGraphs, tmp, true, true);
|
||||
cv::imshow("findMCS", tmp);
|
||||
//cv::waitKey(0);
|
||||
|
||||
eraseUsedGraph(basisGraphs);
|
||||
|
||||
tmp = img.clone();
|
||||
drawBasisGraphs(basisGraphs, tmp, true, true);
|
||||
cv::imshow("eraseUsedGraph", tmp);
|
||||
//cv::waitKey(0);
|
||||
|
||||
holes2 = holes;
|
||||
holes.clear();
|
||||
findMCS(basis, basisGraphs);
|
||||
|
||||
tmp = img.clone();
|
||||
drawBasisGraphs(basisGraphs, tmp, true, true);
|
||||
cv::imshow("findMCS2", tmp);
|
||||
//cv::waitKey(0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -848,7 +848,7 @@ TEST(Calib3d_AsymmetricCirclesPatternDetector, issue_x1)
|
||||
}
|
||||
|
||||
bool found = false;
|
||||
found = findCirclesGrid(image, parrernSize, centers, CALIB_CB_ASYMMETRIC_GRID | CALIB_CB_CLUSTERING);
|
||||
found = findCirclesGrid(image, parrernSize, centers, CALIB_CB_ASYMMETRIC_GRID);
|
||||
|
||||
drawChessboardCorners(image, parrernSize, centers,found);
|
||||
imshow("image", image);
|
||||
@ -862,7 +862,7 @@ TEST(Calib3d_AsymmetricCirclesPatternDetector, issue_x1)
|
||||
|
||||
TEST(Calib3d_AsymmetricCirclesPatternDetector, issue_x2)
|
||||
{
|
||||
string path = cvtest::findDataFile("cv/cameracalibration/asymmetric_circles/test1.png");
|
||||
string path = cvtest::findDataFile("cv/cameracalibration/asymmetric_circles/test7.png");
|
||||
Mat image = cv::imread(path);
|
||||
ASSERT_FALSE(image.empty()) << "Can't read image: " << path;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user