Small fixes for SimpleFlow algorithm

+ Fixed warnings
+ Add new function calcOpticalFlow with smaller number of arguments
+ Add asserts to algorithm and remove 'exit(1)'
This commit is contained in:
Yury Zemlyanskiy
2012-08-31 13:27:14 +04:00
committed by Vadim Pisarevsky
parent 784c09d6f9
commit 1fde184192
5 changed files with 32 additions and 22 deletions

View File

@@ -328,6 +328,13 @@ CV_EXPORTS_W Mat estimateRigidTransform( InputArray src, InputArray dst,
bool fullAffine);
//! computes dense optical flow using Simple Flow algorithm
CV_EXPORTS_W void calcOpticalFlowSF(Mat& from,
Mat& to,
Mat& flow,
int layers,
int averaging_block_size,
int max_flow);
CV_EXPORTS_W void calcOpticalFlowSF(Mat& from,
Mat& to,
Mat& flow,