|
|
|
|
@ -64,22 +64,13 @@ cv::Mat ImageProcess::findCircle(const Mat &srcImg, Point2f& center, double &rad
|
|
|
|
|
equalizeHist(detectImg, detectImg);
|
|
|
|
|
detectImg = _EnhanImg_sharpen(detectImg);
|
|
|
|
|
|
|
|
|
|
<<<<<<< .merge_file_a37956
|
|
|
|
|
=======
|
|
|
|
|
float centerX = 0;
|
|
|
|
|
float centerY = 0;
|
|
|
|
|
/*
|
|
|
|
|
>>>>>>> .merge_file_a27936
|
|
|
|
|
EDCircles edcircles(detectImg);
|
|
|
|
|
vector<mCircle> EDCircle = edcircles.getCircles();
|
|
|
|
|
double maxR = 0;
|
|
|
|
|
int nIndex = -1;
|
|
|
|
|
<<<<<<< .merge_file_a37956
|
|
|
|
|
float centerX = 0;
|
|
|
|
|
float centerY = 0;
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
>>>>>>> .merge_file_a27936
|
|
|
|
|
double tmpmaxR = 0;
|
|
|
|
|
for (int i = 0; i < EDCircle.size(); i++)
|
|
|
|
|
{
|
|
|
|
|
@ -113,11 +104,8 @@ cv::Mat ImageProcess::findCircle(const Mat &srcImg, Point2f& center, double &rad
|
|
|
|
|
center.y = (EDCircle[nIndex].center.y * REAIZE);
|
|
|
|
|
return DetectCircle(srcImg, Mat(), center, radius, bEqual, cParam);
|
|
|
|
|
}
|
|
|
|
|
<<<<<<< .merge_file_a37956
|
|
|
|
|
else {
|
|
|
|
|
=======
|
|
|
|
|
else */{
|
|
|
|
|
>>>>>>> .merge_file_a27936
|
|
|
|
|
else */
|
|
|
|
|
{
|
|
|
|
|
center.x = centerX;
|
|
|
|
|
center.y = centerY;
|
|
|
|
|
radius = 0;
|
|
|
|
|
|