// // C++: bool cv::face::Facemark::fit(Mat image, vector_Rect faces, vector_vector_Point2f& landmarks) // //javadoc: Facemark::fit(image, faces, landmarks) public bool fit(Mat image, MatOfRect faces, List <MatOfPoint2f> landmarks) { ThrowIfDisposed(); if (image != null) { image.ThrowIfDisposed(); } if (faces != null) { faces.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat faces_mat = faces; Mat landmarks_mat = new Mat(); bool retVal = face_Facemark_fit_10(nativeObj, image.nativeObj, faces_mat.nativeObj, landmarks_mat.nativeObj); Converters.Mat_to_vector_vector_Point2f(landmarks_mat, landmarks); landmarks_mat.release(); return(retVal); #else return(false); #endif }
// // C++: void Subdiv2D::getVoronoiFacetList(vector_int idx, vector_vector_Point2f& facetList, vector_Point2f& facetCenters) // public void getVoronoiFacetList(MatOfInt idx, List <MatOfPoint2f> facetList, MatOfPoint2f facetCenters) { if (idx != null) { idx.ThrowIfDisposed(); } if (facetCenters != null) { facetCenters.ThrowIfDisposed(); } ThrowIfDisposed(); #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5 Mat idx_mat = idx; Mat facetList_mat = new Mat(); Mat facetCenters_mat = facetCenters; imgproc_Subdiv2D_getVoronoiFacetList_10(nativeObj, idx_mat.nativeObj, facetList_mat.nativeObj, facetCenters_mat.nativeObj); Converters.Mat_to_vector_vector_Point2f(facetList_mat, facetList); return; #else return; #endif }