/external/opencv3/samples/gpu/ |
D | optical_flow.cpp | 89 static void drawOpticalFlow(const Mat_<float>& flowx, const Mat_<float>& flowy, Mat& dst, float max… in drawOpticalFlow() argument 91 dst.create(flowx.size(), CV_8UC3); in drawOpticalFlow() 100 for (int y = 0; y < flowx.rows; ++y) in drawOpticalFlow() 102 for (int x = 0; x < flowx.cols; ++x) in drawOpticalFlow() 104 Point2f u(flowx(y, x), flowy(y, x)); in drawOpticalFlow() 114 for (int y = 0; y < flowx.rows; ++y) in drawOpticalFlow() 116 for (int x = 0; x < flowx.cols; ++x) in drawOpticalFlow() 118 Point2f u(flowx(y, x), flowy(y, x)); in drawOpticalFlow() 131 Mat flowx(planes[0]); in showFlow() local 135 drawOpticalFlow(flowx, flowy, out, 10); in showFlow()
|
D | farneback_optical_flow.cpp | 76 Mat flowxy, flowx, flowy, image; in main() local 96 planes[0].download(flowx); in main() 107 Mat planes[] = {flowx, flowy}; in main() 109 flowx = planes[0]; flowy = planes[1]; in main() 112 colorizeFlow(flowx, flowy, image); in main()
|
/external/opencv3/modules/cudaoptflow/src/ |
D | farneback.cpp | 71 … const PtrStepSzf flowx, const PtrStepSzf flowy, const PtrStepSzf R0, const PtrStepSzf R1, 75 const PtrStepSzf M, PtrStepSzf flowx, PtrStepSzf flowy, cudaStream_t stream); 150 const GpuMat& R0, const GpuMat& R1, GpuMat& flowx, GpuMat &flowy, 154 const GpuMat& R0, const GpuMat& R1, GpuMat& flowx, GpuMat& flowy, 157 …void calcImpl(const GpuMat &frame0, const GpuMat &frame1, GpuMat &flowx, GpuMat &flowy, Stream &st… 170 GpuMat flowx = pool.getBuffer(frame0.size(), CV_32FC1); in calc() local 173 calcImpl(frame0, frame1, flowx, flowy, stream); in calc() 175 GpuMat flows[] = {flowx, flowy}; in calc() 257 const GpuMat& R0, const GpuMat& R1, GpuMat& flowx, GpuMat &flowy, in updateFlow_boxFilter() argument 268 … device::optflow_farneback::updateFlowGpu(M, flowx, flowy, StreamAccessor::getStream(streams[0])); in updateFlow_boxFilter() [all …]
|
D | tvl1flow.cpp | 131 … void calcImpl(const GpuMat& I0, const GpuMat& I1, GpuMat& flowx, GpuMat& flowy, Stream& stream); 167 GpuMat flowx = pool.getBuffer(frame0.size(), CV_32FC1); in calc() local 170 calcImpl(frame0, frame1, flowx, flowy, stream); in calc() 172 GpuMat flows[] = {flowx, flowy}; in calc() 176 …void OpticalFlowDual_TVL1_Impl::calcImpl(const GpuMat& I0, const GpuMat& I1, GpuMat& flowx, GpuMat… in calcImpl() argument 181 …!useInitialFlow_ || (flowx.size() == I0.size() && flowx.type() == CV_32FC1 && flowy.size() == flow… in calcImpl() 196 flowx.create(I0.size(), CV_32FC1); in calcImpl() 200 u1s[0] = flowx; in calcImpl()
|
/external/opencv3/modules/cudaoptflow/src/cuda/ |
D | farneback.cu | 157 const int height, const int width, const PtrStepf flowx, const PtrStepf flowy, in updateMatrices() argument 165 float dx = flowx(y, x); in updateMatrices() 252 … const PtrStepSzf flowx, const PtrStepSzf flowy, const PtrStepSzf R0, const PtrStepSzf R1, in updateMatricesGpu() argument 256 dim3 grid(divUp(flowx.cols, block.x), divUp(flowx.rows, block.y)); in updateMatricesGpu() 258 updateMatrices<<<grid, block, 0, stream>>>(flowx.rows, flowx.cols, flowx, flowy, R0, R1, M); in updateMatricesGpu() 268 const int height, const int width, const PtrStepf M, PtrStepf flowx, PtrStepf flowy) in updateFlow() argument 283 flowx(y, x) = (g11*h2 - g12*h1) * detInv; in updateFlow() 289 void updateFlowGpu(const PtrStepSzf M, PtrStepSzf flowx, PtrStepSzf flowy, cudaStream_t stream) in updateFlowGpu() argument 292 dim3 grid(divUp(flowx.cols, block.x), divUp(flowx.rows, block.y)); in updateFlowGpu() 294 updateFlow<<<grid, block, 0, stream>>>(flowx.rows, flowx.cols, M, flowx, flowy); in updateFlowGpu()
|
/external/opencv3/modules/video/src/ |
D | optflowgf.cpp | 612 bool operator ()(const UMat &frame0, const UMat &frame1, UMat &flowx, UMat &flowy) in operator ()() argument 624 flowx.create(size, CV_32F); in operator ()() 626 UMat flowx0 = flowx; in operator ()() 774 flowx = curFlowX; in operator ()() 957 bool updateFlowOcl(const UMat &M, UMat &flowx, UMat &flowy) in updateFlowOcl() argument 964 size_t globalsize[2] = { flowx.cols, flowx.rows}; in updateFlowOcl() 973 idxArg = kernel.set(idxArg, ocl::KernelArg::PtrReadOnly(flowx)); in updateFlowOcl() 974 idxArg = kernel.set(idxArg, (int)(flowx.step / flowx.elemSize())); in updateFlowOcl() 981 …bool updateMatricesOcl(const UMat &flowx, const UMat &flowy, const UMat &R0, const UMat &R1, UMat … in updateMatricesOcl() argument 988 size_t globalsize[2] = { flowx.cols, flowx.rows}; in updateMatricesOcl() [all …]
|
/external/opencv3/modules/cudalegacy/src/ |
D | bm_fast.cpp | 62 void cv::cuda::FastOpticalFlowBM::operator ()(const GpuMat& I0, const GpuMat& I1, GpuMat& flowx, Gp… in operator ()() argument 84 flowx.create(I0.size(), CV_32FC1); in operator ()() 87 …optflowbm_fast::calc<uchar>(I0_hdr, I1_hdr, flowx, flowy, buffer, search_window, block_window, Str… in operator ()()
|
/external/opencv3/modules/video/src/opencl/ |
D | optical_flow_farneback.cl | 256 __kernel void updateMatrices(__global const float * flowx, int xStep, 268 float dx = flowx[mad24(y, xStep, x)]; 409 __global float * flowx, int xStep, 426 flowx[mad24(y, xStep, x)] = (g11*h2 - g12*h1) * detInv;
|
/external/opencv3/modules/cudalegacy/include/opencv2/ |
D | cudalegacy.hpp | 202 …void operator ()(const GpuMat& I0, const GpuMat& I1, GpuMat& flowx, GpuMat& flowy, int search_wind…
|