public static int chamerMatching(Mat img, Mat templ, List <MatOfPoint> results, MatOfFloat cost) { if (img != null) { img.ThrowIfDisposed(); } if (templ != null) { templ.ThrowIfDisposed(); } if (cost != null) { cost.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5 Mat results_mat = new Mat(); Mat cost_mat = cost; int retVal = contrib_Contrib_chamerMatching_11(img.nativeObj, templ.nativeObj, results_mat.nativeObj, cost_mat.nativeObj); Converters.Mat_to_vector_vector_Point(results_mat, results); return(retVal); #else return(0); #endif }
// // C++: int chamerMatching(Mat img, Mat templ, vector_vector_Point& results, vector_float& cost, double templScale = 1, int maxMatches = 20, double minMatchDistance = 1.0, int padX = 3, int padY = 3, int scales = 5, double minScale = 0.6, double maxScale = 1.6, double orientationWeight = 0.5, double truncate = 20) // public static int chamerMatching(Mat img, Mat templ, List <MatOfPoint> results, MatOfFloat cost, double templScale, int maxMatches, double minMatchDistance, int padX, int padY, int scales, double minScale, double maxScale, double orientationWeight, double truncate) { if (img != null) { img.ThrowIfDisposed(); } if (templ != null) { templ.ThrowIfDisposed(); } if (cost != null) { cost.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5 Mat results_mat = new Mat(); Mat cost_mat = cost; int retVal = contrib_Contrib_chamerMatching_10(img.nativeObj, templ.nativeObj, results_mat.nativeObj, cost_mat.nativeObj, templScale, maxMatches, minMatchDistance, padX, padY, scales, minScale, maxScale, orientationWeight, truncate); Converters.Mat_to_vector_vector_Point(results_mat, results); return(retVal); #else return(0); #endif }
// // C++: void cv::MSER::detectRegions(Mat image, vector_vector_Point& msers, vector_Rect& bboxes) // //javadoc: MSER::detectRegions(image, msers, bboxes) public void detectRegions(Mat image, List <MatOfPoint> msers, MatOfRect bboxes) { ThrowIfDisposed(); if (image != null) { image.ThrowIfDisposed(); } if (bboxes != null) { bboxes.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat msers_mat = new Mat(); Mat bboxes_mat = bboxes; features2d_MSER_detectRegions_10(nativeObj, image.nativeObj, msers_mat.nativeObj, bboxes_mat.nativeObj); Converters.Mat_to_vector_vector_Point(msers_mat, msers); msers_mat.release(); return; #else return; #endif }
// // C++: void cv::text::detectRegions(Mat image, Ptr_ERFilter er_filter1, Ptr_ERFilter er_filter2, vector_vector_Point& regions) // //javadoc: detectRegions(image, er_filter1, er_filter2, regions) public static void detectRegions(Mat image, ERFilter er_filter1, ERFilter er_filter2, List <MatOfPoint> regions) { if (image != null) { image.ThrowIfDisposed(); } if (er_filter1 != null) { er_filter1.ThrowIfDisposed(); } if (er_filter2 != null) { er_filter2.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat regions_mat = new Mat(); text_Text_detectRegions_14(image.nativeObj, er_filter1.getNativeObjAddr(), er_filter2.getNativeObjAddr(), regions_mat.nativeObj); Converters.Mat_to_vector_vector_Point(regions_mat, regions); regions_mat.release(); return; #else return; #endif }