// // C++: static void cv::xfeatures2d::PCTSignatures::generateInitPoints(vector_Point2f initPoints, int count, int pointDistribution) // /** * Generates initial sampling points according to selected point distribution. * param initPoints Output vector where the generated points will be saved. * param count Number of points to generate. * param pointDistribution Point distribution selector. * Available: UNIFORM, REGULAR, NORMAL. * <b>Note:</b> Generated coordinates are in range [0..1) */ public static void generateInitPoints(MatOfPoint2f initPoints, int count, int pointDistribution) { if (initPoints != null) { initPoints.ThrowIfDisposed(); } Mat initPoints_mat = initPoints; xfeatures2d_PCTSignatures_generateInitPoints_10(initPoints_mat.nativeObj, count, pointDistribution); }
// // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, int initSeedCount) // /** * Creates PCTSignatures algorithm using pre-generated sampling points * and number of clusterization seeds. It uses the provided * sampling points and generates its own clusterization seed indexes. * param initSamplingPoints Sampling points used in image sampling. * param initSeedCount Number of initial clusterization seeds. * Must be lower or equal to initSamplingPoints.size(). * return Created algorithm. */ public static PCTSignatures create(MatOfPoint2f initSamplingPoints, int initSeedCount) { if (initSamplingPoints != null) { initSamplingPoints.ThrowIfDisposed(); } Mat initSamplingPoints_mat = initSamplingPoints; return(PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_14(initSamplingPoints_mat.nativeObj, initSeedCount))); }
// // C++: void cv::Subdiv2D::insert(vector_Point2f ptvec) // /** * Insert multiple points into a Delaunay triangulation. * * param ptvec Points to insert. * * The function inserts a vector of points into a subdivision and modifies the subdivision topology * appropriately. */ public void insert(MatOfPoint2f ptvec) { ThrowIfDisposed(); if (ptvec != null) { ptvec.ThrowIfDisposed(); } Mat ptvec_mat = ptvec; imgproc_Subdiv2D_insert_11(nativeObj, ptvec_mat.nativeObj); }
// // C++: void cv::xfeatures2d::PCTSignatures::setSamplingPoints(vector_Point2f samplingPoints) // /** * Sets sampling points used to sample the input image. * param samplingPoints Vector of sampling points in range [0..1) * <b>Note:</b> Number of sampling points must be greater or equal to clusterization seed count. */ public void setSamplingPoints(MatOfPoint2f samplingPoints) { ThrowIfDisposed(); if (samplingPoints != null) { samplingPoints.ThrowIfDisposed(); } Mat samplingPoints_mat = samplingPoints; xfeatures2d_PCTSignatures_setSamplingPoints_10(nativeObj, samplingPoints_mat.nativeObj); }
// // C++: static void cv::xfeatures2d::PCTSignatures::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_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++: static Ptr_PCTSignatures cv::xfeatures2d::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_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_14(initSamplingPoints_mat.nativeObj, initSeedCount)); return(retVal); #else return(null); #endif }
// // C++: static Ptr_PCTSignatures cv::xfeatures2d::PCTSignatures::create(vector_Point2f initSamplingPoints, vector_int initClusterSeedIndexes) // /** * Creates PCTSignatures algorithm using pre-generated sampling points * and clusterization seeds indexes. * param initSamplingPoints Sampling points used in image sampling. * param initClusterSeedIndexes Indexes of initial clusterization seeds. * Its size must be lower or equal to initSamplingPoints.size(). * return Created algorithm. */ public static PCTSignatures create(MatOfPoint2f initSamplingPoints, MatOfInt initClusterSeedIndexes) { if (initSamplingPoints != null) { initSamplingPoints.ThrowIfDisposed(); } if (initClusterSeedIndexes != null) { initClusterSeedIndexes.ThrowIfDisposed(); } Mat initSamplingPoints_mat = initSamplingPoints; Mat initClusterSeedIndexes_mat = initClusterSeedIndexes; return(PCTSignatures.__fromPtr__(xfeatures2d_PCTSignatures_create_15(initSamplingPoints_mat.nativeObj, initClusterSeedIndexes_mat.nativeObj))); }
// // C++: void cv::Subdiv2D::insert(vector_Point2f ptvec) // //javadoc: Subdiv2D::insert(ptvec) public void insert(MatOfPoint2f ptvec) { ThrowIfDisposed(); if (ptvec != null) { ptvec.ThrowIfDisposed(); } #if ((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 cv::xfeatures2d::PCTSignatures::setSamplingPoints(vector_Point2f samplingPoints) // //javadoc: PCTSignatures::setSamplingPoints(samplingPoints) public void setSamplingPoints(MatOfPoint2f samplingPoints) { ThrowIfDisposed(); if (samplingPoints != null) { samplingPoints.ThrowIfDisposed(); } #if ((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 cv::Subdiv2D::getVoronoiFacetList(vector_int idx, vector_vector_Point2f& facetList, vector_Point2f& facetCenters) // /** * Returns a list of all Voronoi facets. * * param idx Vector of vertices IDs to consider. For all vertices you can pass empty vector. * param facetList Output vector of the Voronoi facets. * param facetCenters Output vector of the Voronoi facets center points. */ public void getVoronoiFacetList(MatOfInt idx, List <MatOfPoint2f> facetList, MatOfPoint2f facetCenters) { ThrowIfDisposed(); if (idx != null) { idx.ThrowIfDisposed(); } if (facetCenters != null) { facetCenters.ThrowIfDisposed(); } 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); facetList_mat.release(); }
// // C++: void cv::omnidir::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_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER 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_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_15(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj); return; #else return; #endif }
//javadoc: calcOpticalFlowPyrLK(prevImg, nextImg, prevPts, nextPts, status, err, winSize, maxLevel, criteria) public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria) { 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_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_12(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); return; #else return; #endif }
// // C++: void cv::Subdiv2D::getVoronoiFacetList(vector_int idx, vector_vector_Point2f& facetList, vector_Point2f& facetCenters) // //javadoc: Subdiv2D::getVoronoiFacetList(idx, facetList, facetCenters) public void getVoronoiFacetList(MatOfInt idx, List <MatOfPoint2f> facetList, MatOfPoint2f facetCenters) { ThrowIfDisposed(); if (idx != null) { idx.ThrowIfDisposed(); } if (facetCenters != null) { facetCenters.ThrowIfDisposed(); } #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER 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); facetList_mat.release(); return; #else return; #endif }