/external/opencv3/samples/gpu/ |
optical_flow.cpp | 89 static void drawOpticalFlow(const Mat_<float>& flowx, const Mat_<float>& flowy, Mat& dst, float maxmotion = -1) 91 dst.create(flowx.size(), CV_8UC3); 100 for (int y = 0; y < flowx.rows; ++y) 102 for (int x = 0; x < flowx.cols; ++x) 104 Point2f u(flowx(y, x), flowy(y, x)); 114 for (int y = 0; y < flowx.rows; ++y) 116 for (int x = 0; x < flowx.cols; ++x) 118 Point2f u(flowx(y, x), flowy(y, x)); 131 Mat flowx(planes[0]); 135 drawOpticalFlow(flowx, flowy, out, 10) [all...] |
farneback_optical_flow.cpp | 76 Mat flowxy, flowx, flowy, image; local 96 planes[0].download(flowx); 107 Mat planes[] = {flowx, flowy}; 109 flowx = planes[0]; flowy = planes[1]; 112 colorizeFlow(flowx, flowy, image);
|
/external/opencv3/modules/cudaoptflow/src/ |
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 &stream); 170 GpuMat flowx = pool.getBuffer(frame0.size(), CV_32FC1); 173 calcImpl(frame0, frame1, flowx, flowy, stream); 175 GpuMat flows[] = {flowx, flowy}; 257 const GpuMat& R0, const GpuMat& R1, GpuMat& flowx, GpuMat &flowy, 268 device::optflow_farneback::updateFlowGpu(M, flowx, flowy, StreamAccessor::getStream(streams[0])) [all...] |
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); local 170 calcImpl(frame0, frame1, flowx, flowy, stream); 172 GpuMat flows[] = {flowx, flowy}; 176 void OpticalFlowDual_TVL1_Impl::calcImpl(const GpuMat& I0, const GpuMat& I1, GpuMat& flowx, GpuMat& flowy, Stream& stream) 181 CV_Assert( !useInitialFlow_ || (flowx.size() == I0.size() && flowx.type() == CV_32FC1 && flowy.size() == flowx.size() && flowy.type() == flowx.type()) ); 196 flowx.create(I0.size(), CV_32FC1) [all...] |
/external/opencv3/modules/cudalegacy/src/ |
bm_fast.cpp | 62 void cv::cuda::FastOpticalFlowBM::operator ()(const GpuMat& I0, const GpuMat& I1, GpuMat& flowx, GpuMat& flowy, int search_window, int block_window, Stream& stream) 84 flowx.create(I0.size(), CV_32FC1); 87 optflowbm_fast::calc<uchar>(I0_hdr, I1_hdr, flowx, flowy, buffer, search_window, block_window, StreamAccessor::getStream(stream));
|
/external/opencv3/modules/cudaoptflow/src/cuda/ |
farneback.cu | 157 const int height, const int width, const PtrStepf flowx, const PtrStepf flowy, 165 float dx = flowx(y, x); 252 const PtrStepSzf flowx, const PtrStepSzf flowy, const PtrStepSzf R0, const PtrStepSzf R1, 256 dim3 grid(divUp(flowx.cols, block.x), divUp(flowx.rows, block.y)); 258 updateMatrices<<<grid, block, 0, stream>>>(flowx.rows, flowx.cols, flowx, flowy, R0, R1, M); 268 const int height, const int width, const PtrStepf M, PtrStepf flowx, PtrStepf flowy) 283 flowx(y, x) = (g11*h2 - g12*h1) * detInv [all...] |
/external/opencv3/modules/video/src/ |
optflowgf.cpp | 612 bool operator ()(const UMat &frame0, const UMat &frame1, UMat &flowx, UMat &flowy) 624 flowx.create(size, CV_32F); 626 UMat flowx0 = flowx; 774 flowx = curFlowX; 957 bool updateFlowOcl(const UMat &M, UMat &flowx, UMat &flowy) 964 size_t globalsize[2] = { flowx.cols, flowx.rows}; [all...] |
/external/opencv3/modules/cudalegacy/include/opencv2/ |
cudalegacy.hpp | 202 void operator ()(const GpuMat& I0, const GpuMat& I1, GpuMat& flowx, GpuMat& flowy, int search_window = 21, int block_window = 7, Stream& s = Stream::Null());
|
/external/opencv3/modules/video/src/opencl/ |
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;
|