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 は行に対して 4 int を返します! javaでstart、end、depth_point、depthに関する情報を取得するにはどうすればよいですか?