#include <gpu.hpp>
Public Member Functions | |
| BroxOpticalFlow (float alpha_, float gamma_, float scale_factor_, int inner_iterations_, int outer_iterations_, int solver_iterations_) | |
| void | operator() (const GpuMat &frame0, const GpuMat &frame1, GpuMat &u, GpuMat &v, Stream &stream=Stream::Null()) |
Public Attributes | |
| float | alpha |
| flow smoothness | |
| float | gamma |
| gradient constancy importance | |
| float | scale_factor |
| pyramid scale factor | |
| int | inner_iterations |
| number of lagged non-linearity iterations (inner loop) | |
| int | outer_iterations |
| number of warping iterations (number of pyramid levels) | |
| int | solver_iterations |
| number of linear system solver iterations | |
| GpuMat | buf |
| cv::gpu::BroxOpticalFlow::BroxOpticalFlow | ( | float | alpha_, |
| float | gamma_, | ||
| float | scale_factor_, | ||
| int | inner_iterations_, | ||
| int | outer_iterations_, | ||
| int | solver_iterations_ | ||
| ) |
| void cv::gpu::BroxOpticalFlow::operator() | ( | const GpuMat & | frame0, |
| const GpuMat & | frame1, | ||
| GpuMat & | u, | ||
| GpuMat & | v, | ||
| Stream & | stream = Stream::Null() |
||
| ) |
Compute optical flow frame0 - source frame (supports only CV_32FC1 type) frame1 - frame to track (with the same size and type as frame0) u - flow horizontal component (along x axis) v - flow vertical component (along y axis)
flow smoothness
gradient constancy importance
pyramid scale factor
number of lagged non-linearity iterations (inner loop)
number of warping iterations (number of pyramid levels)
number of linear system solver iterations