35 mDetector = cv::SimpleBlobDetector::create(params);
47 if (!mDetector.empty())
55 boost::mutex::scoped_lock l(mMutex);
56 std::vector<cv::Point3f> ldots = mDotList;
62 boost::mutex::scoped_lock l(mMutex);
63 std::vector<cv::Point3f> ldots = mDotList;
64 return cv::Size(mLastData.
gray.cols, mLastData.
gray.rows);
67std::vector<cv::Point3f> ArBlobDetector::DetectBlobs(
const cv::Mat input, aruco::CameraParameters camParam,
bool reversedBitmap)
69 std::vector<cv::Point3f> outVector;
73 std::vector<cv::KeyPoint> keypoints;
74 mDetector->detect(input, keypoints);
77 for (
unsigned int i = 0; i < keypoints.size(); i++)
79 cv::Point3f dot(keypoints[i].pt.x, keypoints[i].pt.y, keypoints[i].size);
80 outVector.push_back(dot);
83 catch(cv::Exception &)
104 cv::blur(mLastData.
gray, mLastData.
gray, cv::Size(1, 1));
108 boost::mutex::scoped_lock l(mMutex);
115 boost::this_thread::sleep_for(boost::chrono::milliseconds(1));
cv::Size GetLastBufferSize()
ArBlobDetector(cv::SimpleBlobDetector::Params params)
std::vector< cv::Point3f > GetLastDotList()
aruco::CameraParameters camParam
void GetLastData(LASTDATA &data)
static ArManager * GetInstance()
void StartThreading(std::function< void()> threadFunction)