[英]How to use connected component labeling?
I am using OpenCV 3.2 Android Java and I need to use Imgproc.connectedcomponent
method which is implemented in this version of OpenCV, but the problem is I am not finding the way to get the labels of the labeled image returned. 我正在使用OpenCV 3.2 Android Java,并且需要使用在此版本的OpenCV中实现的Imgproc.connectedcomponent
方法,但是问题是我没有找到获取返回标签图像标签的方法。 Does anyone know how to do that? 有谁知道这是怎么做到的吗?
I found this opencv 3.1 documentation with function descriptions. 我找到了带有功能说明的opencv 3.1文档 。 It should be similiar the the 3.3 version. 它应该与3.3版本相似。 In addition you can find an example how to use the connectedComponents
(its in C++). 另外,您可以找到一个示例如何使用connectedComponents
(在C ++中)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.