我需要有关convexitydefect()
Java 语言函数的信息。
这是功能:
Imgproc.convexityDefects(MatOfPoint contour, MatOfInt convexhull, MatOfInt4 convexityDefects)
结果在convexityDefects变量中:
MatOfInt4 convexityDefects;
现在在 c++ 中,convexityDefects 的结构是:
CvPoint* start; // point of the contour where the defect begins
CvPoint* end; // point of the contour where the defect ends
CvPoint* depth_point; // the farthest from the convex hull point within the defect
float depth;
但是Java retunrs 4 int for row!如何在 java 中获取有关 start、end、depth_point、depth 的信息?