首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OpenCV中有没有一个函数和Matlab的Vision.blobAnalysis()函数功能一样?

OpenCV中有没有一个函数和Matlab的Vision.blobAnalysis()函数功能一样?
EN

Stack Overflow用户
提问于 2015-08-19 22:07:18
回答 1查看 190关注 0票数 1

我们的目标是在不能运行Matlab的嵌入式系统上运行Linux。我们有计算机视觉Matlab脚本原型,并希望此功能(Vision.blobAnalysis)移植到嵌入式。

两个选项:使用Matlab编码器将Matlab计算机视觉功能移植到嵌入式系统,或在嵌入式系统上使用openCV重现功能。

EN

回答 1

Stack Overflow用户

发布于 2015-08-19 22:10:05

尝试一个简单的斑点检测器:

代码语言:javascript
复制
using namespace cv;
// Read image
Mat im = imread( "blob.jpg", IMREAD_GRAYSCALE );

// Set up the detector with default parameters.
SimpleBlobDetector detector;

// Detect blobs.
std::vector<KeyPoint> keypoints;
detector.detect( im, keypoints);

// Draw detected blobs as red circles.
// DrawMatchesFlags::DRAW_RICH_KEYPOINTS flag ensures the size of the circle corresponds to the size of blob
Mat im_with_keypoints;
drawKeypoints( im, keypoints, im_with_keypoints, Scalar(0,0,255), DrawMatchesFlags::DRAW_RICH_KEYPOINTS );

// Show blobs
imshow("keypoints", im_with_keypoints );
waitKey(0);
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32097839

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档