Skip to content
Snippets Groups Projects
Commit 61484a95 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Minor change to compile with the current version of OpenCV.

parent 7c3d62d3
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ void BlobDetectorAlgorithm::blob_detector(const cv::Mat& img,cv::Mat &img_out,ir ...@@ -68,7 +68,7 @@ void BlobDetectorAlgorithm::blob_detector(const cv::Mat& img,cv::Mat &img_out,ir
this->lock(); this->lock();
cv::Ptr<cv::SimpleBlobDetector> detector = cv::SimpleBlobDetector::create(this->params); cv::Ptr<cv::SimpleBlobDetector> detector = cv::SimpleBlobDetector::create(this->params);
cvtColor(img,img_hsv,CV_RGB2HSV); cvtColor(img,img_hsv,cv::COLOR_BGR2RGB);
cv::inRange(img_hsv,cv::Scalar(this->h_min,this->s_min,this->v_min), cv::Scalar(this->h_max,this->s_max,this->v_max),img_bin); cv::inRange(img_hsv,cv::Scalar(this->h_min,this->s_min,this->v_min), cv::Scalar(this->h_max,this->s_max,this->v_max),img_bin);
cv::bitwise_not(img_bin,img_bin_inv); cv::bitwise_not(img_bin,img_bin_inv);
detector->detect(img_bin_inv, keypoints); detector->detect(img_bin_inv, keypoints);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment