// vector_vector_Point2f public static void Mat_to_vector_vector_Point2f(Mat m, List <MatOfPoint2f> pts) { if (m != null) { m.ThrowIfDisposed(); } if (pts == null) { throw new CvException("Output List can't be null"); } if (m == null) { throw new CvException("Input Mat can't be null"); } List <Mat> mats = new List <Mat> (m.rows()); Mat_to_vector_Mat(m, mats); foreach (Mat mi in mats) { MatOfPoint2f pt = new MatOfPoint2f(mi); pts.Add(pt); mi.release(); } mats.Clear(); }
// // C++: vector_Point2f getSamplingPoints() // //javadoc: PCTSignatures::getSamplingPoints() public MatOfPoint2f getSamplingPoints() { ThrowIfDisposed(); #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER MatOfPoint2f retVal = MatOfPoint2f.fromNativeAddr(xfeatures2d_PCTSignatures_getSamplingPoints_10(nativeObj)); return(retVal); #else return(null); #endif }
// // C++: static Ptr_PCTSignatures create(vector_Point2f initSamplingPoints, int initSeedCount) // //javadoc: PCTSignatures::create(initSamplingPoints, initSeedCount) public static PCTSignatures create(MatOfPoint2f initSamplingPoints, int initSeedCount) { if (initSamplingPoints != null) { initSamplingPoints.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat initSamplingPoints_mat = initSamplingPoints; PCTSignatures retVal = PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_12(initSamplingPoints_mat.nativeObj, initSeedCount)); return(retVal); #else return(null); #endif }
// // C++: static void generateInitPoints(vector_Point2f initPoints, int count, int pointDistribution) // //javadoc: PCTSignatures::generateInitPoints(initPoints, count, pointDistribution) public static void generateInitPoints(MatOfPoint2f initPoints, int count, int pointDistribution) { if (initPoints != null) { initPoints.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat initPoints_mat = initPoints; xfeatures2d_PCTSignatures_generateInitPoints_10(initPoints_mat.nativeObj, count, pointDistribution); return; #else return; #endif }
// // C++: void insert(vector_Point2f ptvec) // //javadoc: Subdiv2D::insert(ptvec) public void insert(MatOfPoint2f ptvec) { ThrowIfDisposed(); if (ptvec != null) { ptvec.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat ptvec_mat = ptvec; imgproc_Subdiv2D_insert_11(nativeObj, ptvec_mat.nativeObj); return; #else return; #endif }
// // C++: void setSamplingPoints(vector_Point2f samplingPoints) // //javadoc: PCTSignatures::setSamplingPoints(samplingPoints) public void setSamplingPoints(MatOfPoint2f samplingPoints) { ThrowIfDisposed(); if (samplingPoints != null) { samplingPoints.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat samplingPoints_mat = samplingPoints; xfeatures2d_PCTSignatures_setSamplingPoints_10(nativeObj, samplingPoints_mat.nativeObj); return; #else return; #endif }
// // C++: void insert(vector_Point2f ptvec) // //javadoc: Subdiv2D::insert(ptvec) public void insert(MatOfPoint2f ptvec) { if (ptvec != null) { ptvec.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IPHONE) && !UNITY_EDITOR) || UNITY_5 Mat ptvec_mat = ptvec; imgproc_Subdiv2D_insert_10(nativeObj, ptvec_mat.nativeObj); return; #else return; #endif }
// // C++: void projectPoints(vector_Point3f objectPoints, vector_Point2f& imagePoints, Mat rvec, Mat tvec, Mat K, double xi, Mat D, Mat& jacobian = Mat()) // //javadoc: projectPoints(objectPoints, imagePoints, rvec, tvec, K, xi, D, jacobian) public static void projectPoints(MatOfPoint3f objectPoints, MatOfPoint2f imagePoints, Mat rvec, Mat tvec, Mat K, double xi, Mat D, Mat jacobian) { if (objectPoints != null) { objectPoints.ThrowIfDisposed(); } if (imagePoints != null) { imagePoints.ThrowIfDisposed(); } if (rvec != null) { rvec.ThrowIfDisposed(); } if (tvec != null) { tvec.ThrowIfDisposed(); } if (K != null) { K.ThrowIfDisposed(); } if (D != null) { D.ThrowIfDisposed(); } if (jacobian != null) { jacobian.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5 Mat objectPoints_mat = objectPoints; Mat imagePoints_mat = imagePoints; ccalib_Ccalib_projectPoints_10(objectPoints_mat.nativeObj, imagePoints_mat.nativeObj, rvec.nativeObj, tvec.nativeObj, K.nativeObj, xi, D.nativeObj, jacobian.nativeObj); return; #else return; #endif }
//javadoc: calcOpticalFlowPyrLK(prevImg, nextImg, prevPts, nextPts, status, err) public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err) { if (prevImg != null) { prevImg.ThrowIfDisposed(); } if (nextImg != null) { nextImg.ThrowIfDisposed(); } if (prevPts != null) { prevPts.ThrowIfDisposed(); } if (nextPts != null) { nextPts.ThrowIfDisposed(); } if (status != null) { status.ThrowIfDisposed(); } if (err != null) { err.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5 Mat prevPts_mat = prevPts; Mat nextPts_mat = nextPts; Mat status_mat = status; Mat err_mat = err; video_Video_calcOpticalFlowPyrLK_12(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj); return; #else return; #endif }
// // C++: void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, vector_Point2f prevPts, vector_Point2f& nextPts, vector_uchar& status, vector_float& err, Size winSize = Size(21,21), int maxLevel = 3, TermCriteria criteria = TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01), int flags = 0, double minEigThreshold = 1e-4) // //javadoc: calcOpticalFlowPyrLK(prevImg, nextImg, prevPts, nextPts, status, err, winSize, maxLevel, criteria, flags, minEigThreshold) public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria, int flags, double minEigThreshold) { if (prevImg != null) { prevImg.ThrowIfDisposed(); } if (nextImg != null) { nextImg.ThrowIfDisposed(); } if (prevPts != null) { prevPts.ThrowIfDisposed(); } if (nextPts != null) { nextPts.ThrowIfDisposed(); } if (status != null) { status.ThrowIfDisposed(); } if (err != null) { err.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR) || UNITY_5 Mat prevPts_mat = prevPts; Mat nextPts_mat = nextPts; Mat status_mat = status; Mat err_mat = err; video_Video_calcOpticalFlowPyrLK_10(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj, winSize.width, winSize.height, maxLevel, criteria.type, criteria.maxCount, criteria.epsilon, flags, minEigThreshold); return; #else return; #endif }
//javadoc: calcOpticalFlowPyrLK(prevImg, nextImg, prevPts, nextPts, status, err, winSize, maxLevel) public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel) { if (prevImg != null) { prevImg.ThrowIfDisposed(); } if (nextImg != null) { nextImg.ThrowIfDisposed(); } if (prevPts != null) { prevPts.ThrowIfDisposed(); } if (nextPts != null) { nextPts.ThrowIfDisposed(); } if (status != null) { status.ThrowIfDisposed(); } if (err != null) { err.ThrowIfDisposed(); } #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER Mat prevPts_mat = prevPts; Mat nextPts_mat = nextPts; Mat status_mat = status; Mat err_mat = err; video_Video_calcOpticalFlowPyrLK_11(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj, winSize.width, winSize.height, maxLevel); return; #else return; #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 }