Home
last modified time | relevance | path

Searched refs:npoints (Results 1 – 25 of 33) sorted by relevance

12

/external/opencv3/modules/videostab/src/
Dglobal_motion.cpp68 int npoints = points0.cols; in compactPoints() local
70 npoints, (float*)points0.data, (float*)points1.data, mask.data); in compactPoints()
85 static Mat normalizePoints(int npoints, Point2f *points) in normalizePoints() argument
88 for (int i = 0; i < npoints; ++i) in normalizePoints()
93 cx /= npoints; in normalizePoints()
94 cy /= npoints; in normalizePoints()
97 for (int i = 0; i < npoints; ++i) in normalizePoints()
103 d /= npoints; in normalizePoints()
106 for (int i = 0; i < npoints; ++i) in normalizePoints()
121 int npoints, Point2f *points0, Point2f *points1, float *rmse) in estimateGlobMotionLeastSquaresTranslation() argument
[all …]
Doutlier_rejection.cpp57 int npoints = points0.getMat().checkVector(2); in process() local
58 mask.create(1, npoints, CV_8U); in process()
76 int npoints = points0.getMat().checkVector(2); in process() local
81 mask.create(1, npoints, CV_8U); in process()
93 for (int i = 0; i < npoints; ++i) in process()
/external/zopfli/src/zopfli/
Dblocksplitter.c155 size_t npoints = 0; in PrintBlockSplitPoints() local
163 if (lz77splitpoints[npoints] == i) { in PrintBlockSplitPoints()
164 ZOPFLI_APPEND_DATA(pos, &splitpoints, &npoints); in PrintBlockSplitPoints()
165 if (npoints == nlz77points) break; in PrintBlockSplitPoints()
170 assert(npoints == nlz77points); in PrintBlockSplitPoints()
173 for (i = 0; i < npoints; i++) { in PrintBlockSplitPoints()
177 for (i = 0; i < npoints; i++) { in PrintBlockSplitPoints()
200 const size_t* splitpoints, size_t npoints, in FindLargestSplittableBlock() argument
205 for (i = 0; i <= npoints; i++) { in FindLargestSplittableBlock()
207 size_t end = i == npoints ? llsize - 1 : splitpoints[i]; in FindLargestSplittableBlock()
[all …]
Dblocksplitter.h48 size_t** splitpoints, size_t* npoints);
66 size_t maxblocks, size_t** splitpoints, size_t* npoints);
75 size_t** splitpoints, size_t* npoints);
Ddeflate.c729 size_t npoints = 0; in DeflateSplittingFirst() local
731 ZopfliBlockSplitSimple(in, instart, inend, 65535, &splitpoints, &npoints); in DeflateSplittingFirst()
737 options->blocksplittingmax, &splitpoints, &npoints); in DeflateSplittingFirst()
740 for (i = 0; i <= npoints; i++) { in DeflateSplittingFirst()
742 size_t end = i == npoints ? inend : splitpoints[i]; in DeflateSplittingFirst()
743 DeflateBlock(options, btype, i == npoints && final, in, start, end, in DeflateSplittingFirst()
765 size_t npoints = 0; in DeflateSplittingLast() local
798 options->blocksplittingmax, &splitpoints, &npoints); in DeflateSplittingLast()
801 for (i = 0; i <= npoints; i++) { in DeflateSplittingLast()
803 size_t end = i == npoints ? store.size : splitpoints[i]; in DeflateSplittingLast()
[all …]
/external/opencv3/modules/calib3d/src/
Dfundam.cpp268 int npoints, in createAndRunRHORegistrator() argument
283 tempMask = Mat(npoints, 1, CV_8U); in createAndRunRHORegistrator()
300 rhoEnsureCapacity(p, npoints, beta); in createAndRunRHORegistrator()
317 (unsigned) npoints, in createAndRunRHORegistrator()
332 for(int k=0;k<npoints;k++){ in createAndRunRHORegistrator()
351 int npoints = -1; in findHomography() local
357 npoints = p.checkVector(2, -1, false); in findHomography()
358 if( npoints < 0 ) in findHomography()
360 npoints = p.checkVector(3, -1, false); in findHomography()
361 if( npoints < 0 ) in findHomography()
[all …]
Dsolvepnp.cpp60 int npoints = std::max(opoints.checkVector(3, CV_32F), opoints.checkVector(3, CV_64F)); in solvePnP() local
61 …CV_Assert( npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector… in solvePnP()
103 CV_Assert( npoints == 4); in solvePnP()
229 int npoints = std::max(opoints.checkVector(3, CV_32F), opoints.checkVector(3, CV_64F)); in solvePnPRansac() local
230 …CV_Assert( npoints >= 0 && npoints == std::max(ipoints.checkVector(2, CV_32F), ipoints.checkVector… in solvePnPRansac()
249 if( npoints == 4 ) in solvePnPRansac()
277 int npoints1 = compressElems(&opoints_inliers[0], mask, 1, npoints); in solvePnPRansac()
278 compressElems(&ipoints_inliers[0], mask, 1, npoints); in solvePnPRansac()
305 for (int i = 0; i < npoints; ++i) in solvePnPRansac()
Dcalibration.cpp1139 const CvMat* imagePoints, const CvMat* npoints, in cvInitIntrinsicParams2D() argument
1152 assert( CV_MAT_TYPE(npoints->type) == CV_32SC1 && in cvInitIntrinsicParams2D()
1153 CV_IS_MAT_CONT(npoints->type) ); in cvInitIntrinsicParams2D()
1154 nimages = npoints->rows + npoints->cols - 1; in cvInitIntrinsicParams2D()
1176 ni = npoints->data.i[i]; in cvInitIntrinsicParams2D()
1230 const CvMat* imagePoints, const CvMat* npoints, in cvCalibrateCamera2() argument
1246 !CV_IS_MAT(npoints) || !CV_IS_MAT(cameraMatrix) || !CV_IS_MAT(distCoeffs) ) in cvCalibrateCamera2()
1252 if( CV_MAT_TYPE(npoints->type) != CV_32SC1 || in cvCalibrateCamera2()
1253 (npoints->rows != 1 && npoints->cols != 1) ) in cvCalibrateCamera2()
1260 nimages = npoints->rows*npoints->cols; in cvCalibrateCamera2()
[all …]
/external/opencv3/modules/cudafeatures2d/src/cuda/
Dorb.cu72 …onses(const PtrStepb img, const short2* loc_, float* response, const int npoints, const int blockS… in HarrisResponses() argument
80 if (ptidx < npoints) in HarrisResponses()
126 …ponses_gpu(PtrStepSzb img, const short2* loc, float* response, const int npoints, int blockSize, f… in HarrisResponses_gpu() argument
131 grid.x = divUp(npoints, block.y); in HarrisResponses_gpu()
133 … HarrisResponses<<<grid, block, 0, stream>>>(img, loc, response, npoints, blockSize, harris_k); in HarrisResponses_gpu()
151 …_Angle(const PtrStepb image, const short2* loc_, float* angle, const int npoints, const int half_k) in IC_Angle() argument
163 if (ptidx < npoints) in IC_Angle()
208 …void IC_Angle_gpu(PtrStepSzb image, const short2* loc, float* angle, int npoints, int half_k, cuda… in IC_Angle_gpu() argument
213 grid.x = divUp(npoints, block.y); in IC_Angle_gpu()
215 IC_Angle<<<grid, block, 0, stream>>>(image, loc, angle, npoints, half_k); in IC_Angle_gpu()
[all …]
/external/opencv3/modules/cudafeatures2d/src/
Dorb.cpp60 …ponses_gpu(PtrStepSzb img, const short2* loc, float* response, const int npoints, int blockSize, f…
64 …void IC_Angle_gpu(PtrStepSzb image, const short2* loc, float* angle, int npoints, int half_k, cuda…
66 …id computeOrbDescriptor_gpu(PtrStepb img, const short2* loc, const float* angle, const int npoints,
69 …void mergeLocation_gpu(const short2* loc, float* x, float* y, int npoints, float scale, cudaStream…
466 static void makeRandomPattern(int patchSize, Point* pattern, int npoints) in makeRandomPattern() argument
472 for (int i = 0; i < npoints; i++) in makeRandomPattern()
539 const int npoints = 512; in ORB_Impl() local
540 Point pattern_buf[npoints]; in ORB_Impl()
545 makeRandomPattern(patchSize_, pattern_buf, npoints); in ORB_Impl()
551 h_pattern.create(2, npoints, CV_32SC1); in ORB_Impl()
[all …]
Dfast.cpp187 const int npoints = h_keypoints.cols; in convert() local
189 keypoints.resize(npoints); in convert()
194 for (int i = 0; i < npoints; ++i) in convert()
/external/opencv3/modules/imgproc/src/
Dapprox.cpp678 int npoints = curve.checkVector(2), depth = curve.depth(); in approxPolyDP() local
679 CV_Assert( npoints >= 0 && (depth == CV_32S || depth == CV_32F)); in approxPolyDP()
681 if( npoints == 0 ) in approxPolyDP()
687 AutoBuffer<Point> _buf(npoints); in approxPolyDP()
688 AutoBuffer<Range> _stack(npoints); in approxPolyDP()
693 nout = approxPolyDP_(curve.ptr<Point>(), npoints, buf, closed, epsilon, &_stack); in approxPolyDP()
695 … nout = approxPolyDP_(curve.ptr<Point2f>(), npoints, (Point2f*)buf, closed, epsilon, &_stack); in approxPolyDP()
781 int npoints = src_seq->total, nout = 0; in cvApproxPoly() local
782 _buf.allocate(npoints*2); in cvApproxPoly()
783 cv::Point *src = _buf, *dst = src + npoints; in cvApproxPoly()
[all …]
Dshapedescr.cpp341 int npoints = contour.checkVector(2); in contourArea() local
343 CV_Assert(npoints >= 0 && (depth == CV_32F || depth == CV_32S)); in contourArea()
345 if( npoints == 0 ) in contourArea()
352 …Point2f prev = is_float ? ptsf[npoints-1] : Point2f((float)ptsi[npoints-1].x, (float)ptsi[npoints-… in contourArea()
354 for( int i = 0; i < npoints; i++ ) in contourArea()
485 int npoints = points.checkVector(2); in pointSetBoundingRect() local
487 CV_Assert(npoints >= 0 && (depth == CV_32F || depth == CV_32S)); in pointSetBoundingRect()
492 if( npoints == 0 ) in pointSetBoundingRect()
506 for( i = 1; i < npoints; i++ ) in pointSetBoundingRect()
522 for( i = 1; i < npoints; i++ ) in pointSetBoundingRect()
[all …]
Dconvhull.cpp268 int i, j = 0, npoints = points.checkVector(2, CV_32S); in convexityDefects() local
269 CV_Assert( npoints >= 0 ); in convexityDefects()
271 if( npoints <= 3 ) in convexityDefects()
290 CV_Assert( 0 <= hcurr && hcurr < npoints ); in convexityDefects()
295 CV_Assert( 0 <= hnext && hnext < npoints ); in convexityDefects()
310 j &= j >= npoints ? 0 : -1; in convexityDefects()
/external/opencv/cv/src/
Dcvcalibration.cpp1338 const CvMat* npoints, in cvInitIntrinsicParams2D() argument
1356 assert( CV_MAT_TYPE(npoints->type) == CV_32SC1 && in cvInitIntrinsicParams2D()
1357 CV_IS_MAT_CONT(npoints->type) ); in cvInitIntrinsicParams2D()
1358 nimages = npoints->rows + npoints->cols - 1; in cvInitIntrinsicParams2D()
1375 total = cvRound(cvSum(npoints).val[0]); in cvInitIntrinsicParams2D()
1382 ni = npoints->data.i[i]; in cvInitIntrinsicParams2D()
1445 const CvMat* npoints, in cvCalibrateCamera2() argument
1466 !CV_IS_MAT(npoints) || !CV_IS_MAT(cameraMatrix) || !CV_IS_MAT(distCoeffs) ) in cvCalibrateCamera2()
1472 if( CV_MAT_TYPE(npoints->type) != CV_32SC1 || in cvCalibrateCamera2()
1473 (npoints->rows != 1 && npoints->cols != 1) ) in cvCalibrateCamera2()
[all …]
/external/opencv3/modules/calib3d/test/
Dtest_cameracalibration_badarg.cpp71 CvMat* npoints; member
81 cvCalibrateCamera2(objPts, imgPts, npoints, imageSize, in operator ()()
102 CvMat objPts, imgPts, npoints, cameraMatrix, distCoeffs, rvecs, tvecs; in run() local
109 caller.npoints = &npoints; in run()
145 npoints = npoints_cpp; in run()
163 bad_caller.npoints = 0; in run()
188 bad_caller.npoints = &bad_npts_c1; in run()
192 bad_caller.npoints = &bad_npts_c2; in run()
Dtest_cameracalibration.cpp1228 int npoints = opoints.cols*opoints.rows*opoints.channels()/3; in project() local
1229 ipoints.resize(npoints); in project()
1230 dpdrot.create(npoints*2, 3, CV_64F); in project()
1231 dpdt.create(npoints*2, 3, CV_64F); in project()
1232 dpdf.create(npoints*2, 2, CV_64F); in project()
1233 dpdc.create(npoints*2, 2, CV_64F); in project()
1234 dpddist.create(npoints*2, distCoeffs.rows + distCoeffs.cols - 1, CV_64F); in project()
1422 int npoints = patternSize.width*patternSize.height; in run() local
1451 for( int j = 0; j < npoints; j++ ) in run()
1470 err /= nframes*npoints; in run()
[all …]
Dtest_homography.cpp612 int npoints = (int)(sizeof(pt1data)/sizeof(pt1data[0])/2); in TEST() local
614 Mat p1(1, npoints, CV_32FC2, pt1data); in TEST()
615 Mat p2(1, npoints, CV_32FC2, pt2data); in TEST()
/external/opencv3/modules/video/test/ocl/
Dtest_optflowpyrlk.cpp78 static const int npoints = 1000; in OCL_TEST_P() local
90 cv::goodFeaturesToTrack(frame0, pts, npoints, 0.01, 0.0); in OCL_TEST_P()
/external/opencv3/samples/cpp/
Dstereo_calib.cpp190 int npoints = 0; in StereoCalib() local
210 npoints += npt; in StereoCalib()
212 cout << "average reprojection err = " << err/npoints << endl; in StereoCalib()
/external/opencv3/modules/features2d/src/
Dorb.cpp635 static void makeRandomPattern(int patchSize, Point* pattern, int npoints) in makeRandomPattern() argument
639 for( int i = 0; i < npoints; i++ ) in makeRandomPattern()
1121 const int npoints = 512; in detectAndCompute() local
1122 Point patternbuf[npoints]; in detectAndCompute()
1128 makeRandomPattern(patchSize, patternbuf, npoints); in detectAndCompute()
1134 std::copy(pattern0, pattern0 + npoints, std::back_inserter(pattern)); in detectAndCompute()
1138 initializeOrbPattern(pattern0, pattern, ntuples, wta_k, npoints); in detectAndCompute()
/external/opencv3/modules/video/src/
Dlkpyramid.cpp1046 size_t npoints = _prevPts.total(); in ocl_calcOpticalFlowPyrLK() local
1054 if (_nextPts.total() != npoints) in ocl_calcOpticalFlowPyrLK()
1075 _err.create((int)npoints, 1, CV_32FC1); in ocl_calcOpticalFlowPyrLK()
1079 umatErr.create((int)npoints, 1, CV_32FC1); in ocl_calcOpticalFlowPyrLK()
1081 _status.create((int)npoints, 1, CV_8UC1); in ocl_calcOpticalFlowPyrLK()
1109 int level=0, i, npoints; in calcOpticalFlowPyrLK() local
1110 CV_Assert( (npoints = prevPtsMat.checkVector(2, CV_32F, true)) >= 0 ); in calcOpticalFlowPyrLK()
1112 if( npoints == 0 ) in calcOpticalFlowPyrLK()
1124 CV_Assert( nextPtsMat.checkVector(2, CV_32F, true) == npoints ); in calcOpticalFlowPyrLK()
1129 _status.create((int)npoints, 1, CV_8U, -1, true); in calcOpticalFlowPyrLK()
[all …]
/external/opencv3/modules/features2d/src/kaze/
Dnldiffusion_functions.cpp215 float npoints = 0.0; in compute_k_percentile() local
263 npoints++; in compute_k_percentile()
269 nthreshold = (int)(npoints*perc); in compute_k_percentile()
/external/libvterm/src/
Dstate.c209 int npoints = 0; in on_text() local
219 codepoints, &npoints, state->gsingle_set ? 1 : len, in on_text()
222 if(state->gsingle_set && npoints) in on_text()
246 while(i < npoints && vterm_unicode_is_combining(codepoints[i])) { in on_text()
269 for(; i < npoints; i++) { in on_text()
273 for(glyph_ends = i + 1; glyph_ends < npoints; glyph_ends++) in on_text()
319 if(i == npoints - 1) { in on_text()
/external/opencv3/modules/calib3d/include/opencv2/calib3d/
Dcalib3d_c.h204 const CvMat* npoints, CvSize image_size,
281 const CvMat* image_points2, const CvMat* npoints,

12