我对openCV很新,所以遇到了一些问题。
其中一个问题是如何获取轮廓的坐标,以便绘制一个圆形框围绕它。
到目前为止,我的代码如下:
List<MatOfPoint> contours = mDetector.getContours();
Imgproc.drawContours(mRgba, contours, -1, CONTOUR_COLOR, -1);
<<code that I need>>
Core.circle(mRgba, new Point(150.0,150.0), 100, CONTOUR_COLOR, 5);
轮廓被“提取”并绘制在测试圆的表面上,但是我如何从轮廓中获取坐标(边界),以便在每个轮廓周围绘制一个圆。
谢谢。