Blob与OpenCV。哪个库最好? [英] Blobs with OpenCV. Which library is best?
问题描述
我计划开始用blob作为C ++用户进行实验,在cv :: Mat从OpenCV。的经验。
现在的问题是,哪个blobs库
li> cvBlobs(在Google代码上) - 这是真正的ac库,与IplImage一起工作它需要严重适应c ++。
你建议作为一个专家怎么样?你可以在OpenCV 2.4.3库中找到findContours,cv :: moments和cv :: drawContours我的紧迫问题:新的OpenCV在google代码上没有覆盖cvBlobs?
关于这个问题的问题,我在这里问问 SimpleBlobDetector 。您可能感兴趣。
您应该使用 SimpleBlobDetector
类。你几乎创建一个类型 SimpleBlobDetector
的对象,然后调用 detect(cv :: Mat input,vector< cv :: KeyPoint> keypoints,cv :: Mat mask)
函数,使用cv :: Mat图像作为输入,一个空矢量用于关键点,另一个cv :: Mat作为图像特定区域的可选掩码,以查找关键点in。
请注意,cv :: Mat对象已经接管了OpenCV早期版本中所有以前单独的图像和矩阵类的图像和矩阵存储任务。
I plan to start experimenting with blobs as a C++ user, with some experience at cv::Mat's from the OpenCV.
Now the question is, which blobs library should I use if at all?
I have seen these alternatives so far:
- cvBlobs (on google code) -- that is a c library really, working with IplImage so it needs serious adaptation to c++.
- CvBlobsLib (on willowgarage opencv webpage) -- that looks like a c++ library but has quite bad docs with plenty of stuff left unexplained and barely any code example.
- I have seen cv::findContours, cv::moments and cv::drawContours in the OpenCV 2.4.3 library.
What do you suggest as an expert? My pressing issue: what will the new OpenCV not cover of cvBlobs on google code?
Here is the link for the follow-up question on this subject, where I ask about SimpleBlobDetector. You might be interested.
You should use the SimpleBlobDetector
class in OpenCV 2.4. You pretty much create an object of type SimpleBlobDetector
and then call the detect(cv::Mat input, vector<cv::KeyPoint> keypoints, cv::Mat mask)
function with a cv::Mat image as input, an empty vector for keypoints, and another cv::Mat as an optional mask for a specific area of the image to look for keypoints in.
Note that the cv::Mat object has taken over image and matrix storage duty for all of the formerly separate image and matrix classes in the earlier releases of OpenCV.
这篇关于Blob与OpenCV。哪个库最好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!