@@ -29,13 +29,12 @@ namespace fastcv {
29
29
* @param winSize Size of window for optical flow searching. Width and height ust be odd numbers. Suggested values are 5, 7 or 9
30
30
* @param termCriteria Termination criteria containing max number of iterations, max epsilon and stop condition
31
31
*/
32
- void trackOpticalFlowLK (InputArray src, InputArray dst,
33
- InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
34
- InputArray ptsIn, OutputArray ptsOut, InputArray ptsEst,
35
- OutputArray statusVec, cv::Size winSize = {7 , 7 },
36
- cv::TermCriteria termCriteria = {cv::TermCriteria::MAX_ITER | cv::TermCriteria::EPS,
37
- /* maxIterations */ 7 ,
38
- /* maxEpsilon */ 0 .03f * 0 .03f });
32
+ CV_EXPORTS_W void trackOpticalFlowLK (InputArray src, InputArray dst,
33
+ InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
34
+ InputArray ptsIn, OutputArray ptsOut, InputArray ptsEst,
35
+ OutputArray statusVec, cv::Size winSize = cv::Size (7 , 7 ),
36
+ cv::TermCriteria termCriteria = cv::TermCriteria(cv::TermCriteria::MAX_ITER | cv::TermCriteria::EPS,
37
+ /* maxIterations */ 7 , /* maxEpsilon */ 0 .03f * 0 .03f ));
39
38
40
39
/* *
41
40
* @brief Overload for v1 of the LK tracking function
@@ -52,11 +51,11 @@ void trackOpticalFlowLK(InputArray src, InputArray dst,
52
51
* @param winSize Size of window for optical flow searching. Width and height ust be odd numbers. Suggested values are 5, 7 or 9
53
52
* @param maxIterations Maximum number of iterations to try
54
53
*/
55
- void trackOpticalFlowLK (InputArray src, InputArray dst,
56
- InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
57
- InputArrayOfArrays srcDxPyr, InputArrayOfArrays srcDyPyr,
58
- InputArray ptsIn, OutputArray ptsOut,
59
- OutputArray statusVec, cv::Size winSize = { 7 , 7 } , int maxIterations = 7 );
54
+ CV_EXPORTS_W void trackOpticalFlowLK (InputArray src, InputArray dst,
55
+ InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
56
+ InputArrayOfArrays srcDxPyr, InputArrayOfArrays srcDyPyr,
57
+ InputArray ptsIn, OutputArray ptsOut,
58
+ OutputArray statusVec, cv::Size winSize = cv:: Size ( 7 , 7 ) , int maxIterations = 7);
60
59
61
60
// ! @}
62
61
0 commit comments