Home
last modified time | relevance | path

Searched refs:nextPts (Results 1 – 15 of 15) sorted by relevance

/external/opencv3/modules/video/test/ocl/
Dtest_optflowpyrlk.cpp99 std::vector<cv::Point2f> nextPts; umatNextPts.reshape(2, 1).copyTo(nextPts); in OCL_TEST_P() local
103 ASSERT_EQ(cpuNextPts.size(), nextPts.size()); in OCL_TEST_P()
107 for (size_t i = 0; i < nextPts.size(); ++i) in OCL_TEST_P()
117 cv::Point2i a = nextPts[i]; in OCL_TEST_P()
128 double bad_ratio = static_cast<double>(mistmatch) / (nextPts.size()); in OCL_TEST_P()
/external/opencv3/modules/cudaoptflow/src/
Dpyrlk.cpp60 …void sparse1(PtrStepSzf I, PtrStepSzf J, const float2* prevPts, float2* nextPts, uchar* status, fl…
62 …void sparse4(PtrStepSz<float4> I, PtrStepSz<float4> J, const float2* prevPts, float2* nextPts, uch…
76 … void sparse(const GpuMat& prevImg, const GpuMat& nextImg, const GpuMat& prevPts, GpuMat& nextPts,
116 …t GpuMat& prevImg, const GpuMat& nextImg, const GpuMat& prevPts, GpuMat& nextPts, GpuMat& status, … in sparse() argument
120 nextPts.release(); in sparse()
137 CV_Assert( nextPts.size() == prevPts.size() && nextPts.type() == prevPts.type() ); in sparse()
139 ensureSizeIsEnough(1, prevPts.cols, prevPts.type(), nextPts); in sparse()
141 GpuMat temp1 = (useInitialFlow_ ? nextPts : prevPts).reshape(1); in sparse()
142 GpuMat temp2 = nextPts.reshape(1); in sparse()
189 prevPts.ptr<float2>(), nextPts.ptr<float2>(), in sparse()
[all …]
/external/opencv3/samples/tapi/
Dpyrlk_optical_flow.cpp33 static void drawArrows(UMat& _frame, const vector<Point2f>& prevPts, const vector<Point2f>& nextPts in drawArrows() argument
44 Point q = nextPts[i]; in drawArrows()
113 vector<cv::Point2f> nextPts(points); in main() local
176 calcOpticalFlowPyrLK(ptr0, ptr1, pts, nextPts, status, err); in main()
182 drawArrows(frameCopy, pts, nextPts, status, Scalar(255, 0, 0)); in main()
211 calcOpticalFlowPyrLK(frame0, frame1, pts, nextPts, status, err); in main()
222 drawArrows(frame0, pts, nextPts, status, Scalar(255, 0, 0)); in main()
/external/opencv3/modules/video/misc/java/test/
DVideoTest.java17 private MatOfPoint2f nextPts = null; field in VideoTest
42 nextPts = new MatOfPoint2f(); in setUp()
64 Video.calcOpticalFlowPyrLK(subLena1, subLena2, prevPts, nextPts, status, err); in testCalcOpticalFlowPyrLKMatMatListOfPointListOfPointListOfByteListOfFloat()
70 Video.calcOpticalFlowPyrLK(subLena1, subLena2, prevPts, nextPts, status, err, sz, 3); in testCalcOpticalFlowPyrLKMatMatListOfPointListOfPointListOfByteListOfFloatSize()
/external/opencv3/samples/gpu/
Dpyrlk_optical_flow.cpp30 static void drawArrows(Mat& frame, const vector<Point2f>& prevPts, const vector<Point2f>& nextPts, … in drawArrows() argument
39 Point q = nextPts[i]; in drawArrows()
167 vector<Point2f> nextPts(d_nextPts.cols); in main() local
168 download(d_nextPts, nextPts); in main()
173 drawArrows(frame0, prevPts, nextPts, status, Scalar(255, 0, 0)); in main()
/external/opencv3/modules/cudaoptflow/src/cuda/
Dpyrlk.cu121 …__global__ void sparseKernel(const float2* prevPts, float2* nextPts, uchar* status, float* err, co… in sparseKernel() argument
221 float2 nextPt = nextPts[blockIdx.x]; in sparseKernel()
305 nextPts[blockIdx.x] = nextPt; in sparseKernel()
313 …void sparse_caller(int rows, int cols, const float2* prevPts, float2* nextPts, uchar* status, floa… in sparse_caller() argument
319 …sparseKernel<cn, PATCH_X, PATCH_Y, true><<<grid, block>>>(prevPts, nextPts, status, err, level, ro… in sparse_caller()
321 …sparseKernel<cn, PATCH_X, PATCH_Y, false><<<grid, block>>>(prevPts, nextPts, status, err, level, r… in sparse_caller()
487 …void sparse1(PtrStepSzf I, PtrStepSzf J, const float2* prevPts, float2* nextPts, uchar* status, fl… in sparse1() argument
490 …typedef void (*func_t)(int rows, int cols, const float2* prevPts, float2* nextPts, uchar* status, … in sparse1()
505 funcs[patch.y - 1][patch.x - 1](I.rows, I.cols, prevPts, nextPts, status, err, ptcount, in sparse1()
509 …void sparse4(PtrStepSz<float4> I, PtrStepSz<float4> J, const float2* prevPts, float2* nextPts, uch… in sparse4() argument
[all …]
/external/opencv3/modules/cudaoptflow/perf/
Dperf_optflow.cpp145 cv::cuda::GpuMat nextPts; variable
148 TEST_CYCLE() d_pyrLK->calc(d_frame0, d_frame1, d_pts, nextPts, status);
150 CUDA_SANITY_CHECK(nextPts);
155 cv::Mat nextPts; variable
160 cv::calcOpticalFlowPyrLK(frame0, frame1, pts, nextPts, status, cv::noArray(), in TEST_CYCLE()
165 CPU_SANITY_CHECK(nextPts);
/external/opencv3/modules/java/src/
Dvideo+Video.java94 …alFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status… in calcOpticalFlowPyrLK() argument
97 Mat nextPts_mat = nextPts; in calcOpticalFlowPyrLK()
106 …alFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status… in calcOpticalFlowPyrLK() argument
109 Mat nextPts_mat = nextPts; in calcOpticalFlowPyrLK()
118 …alFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status… in calcOpticalFlowPyrLK() argument
121 Mat nextPts_mat = nextPts; in calcOpticalFlowPyrLK()
Dvideo.cpp342 std::vector<Point2f> nextPts; in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_10() local
344 Mat_to_vector_Point2f( nextPts_mat, nextPts ); in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_10()
353 …cv::calcOpticalFlowPyrLK( prevImg, nextImg, prevPts, nextPts, status, err, winSize, (int)maxLevel,… in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_10()
354 …vector_Point2f_to_Mat( nextPts, nextPts_mat ); vector_uchar_to_Mat( status, status_mat ); vector… in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_10()
377 std::vector<Point2f> nextPts; in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_11() local
379 Mat_to_vector_Point2f( nextPts_mat, nextPts ); in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_11()
387 …cv::calcOpticalFlowPyrLK( prevImg, nextImg, prevPts, nextPts, status, err, winSize, (int)maxLevel … in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_11()
388 …vector_Point2f_to_Mat( nextPts, nextPts_mat ); vector_uchar_to_Mat( status, status_mat ); vector… in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_11()
411 std::vector<Point2f> nextPts; in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_12() local
413 Mat_to_vector_Point2f( nextPts_mat, nextPts ); in Java_org_opencv_video_Video_calcOpticalFlowPyrLK_12()
[all …]
/external/opencv3/modules/cudaoptflow/test/
Dtest_optflow.cpp215 std::vector<cv::Point2f> nextPts(d_nextPts.cols); in CUDA_TEST_P() local
216 cv::Mat nextPts_mat(1, d_nextPts.cols, CV_32FC2, (void*) &nextPts[0]); in CUDA_TEST_P()
227 ASSERT_EQ(nextPts_gold.size(), nextPts.size()); in CUDA_TEST_P()
231 for (size_t i = 0; i < nextPts.size(); ++i) in CUDA_TEST_P()
233 cv::Point2i a = nextPts[i]; in CUDA_TEST_P()
251 double bad_ratio = static_cast<double>(mistmatch) / nextPts.size(); in CUDA_TEST_P()
/external/opencv3/modules/video/src/
Dlkpyramid.hpp24 Point2f* nextPts; member
Dlkpyramid.cpp205 nextPts = _nextPts; in LKTrackerInvoker()
245 nextPt = nextPts[ptidx]*(float)(1./(1 << level)); in operator ()()
250 nextPt = nextPts[ptidx]*2.f; in operator ()()
251 nextPts[ptidx] = nextPt; in operator ()()
688 nextPts[ptidx] = nextPt + halfWin; in operator ()()
696 nextPts[ptidx] -= delta*0.5f; in operator ()()
704 Point2f nextPoint = nextPts[ptidx] - halfWin; in operator ()()
878 …bool sparse(const UMat &prevImg, const UMat &nextImg, const UMat &prevPts, UMat &nextPts, UMat &st… in sparse() argument
883 UMat temp1 = (useInitialFlow ? nextPts : prevPts).reshape(1); in sparse()
884 UMat temp2 = nextPts.reshape(1); in sparse()
[all …]
/external/opencv3/modules/cudaoptflow/include/opencv2/
Dcudaoptflow.hpp100 InputArray prevPts, InputOutputArray nextPts,
/external/opencv3/modules/video/include/opencv2/video/
Dtracking.hpp174 InputArray prevPts, InputOutputArray nextPts,
/external/opencv3/modules/video/src/opencl/
Dpyrlk.cl304 …__global const float2* prevPts, __global float2* nextPts, __global uchar* status, __global float* …
416 prevPt = nextPts[gid] * 2.0f - c_halfWin;
560 nextPts[gid] = prevPt;