Skip to content

Commit c44f7ee

Browse files
authored
Merge pull request #3892 from asmorkalov:as/fastcv_export_fix
Fixed export for Optical Flow PyrLK extention for FastCV.
2 parents ce3c668 + 84e8a73 commit c44f7ee

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

modules/fastcv/include/opencv2/fastcv/tracking.hpp

+11-12
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ namespace fastcv {
2929
* @param winSize Size of window for optical flow searching. Width and height ust be odd numbers. Suggested values are 5, 7 or 9
3030
* @param termCriteria Termination criteria containing max number of iterations, max epsilon and stop condition
3131
*/
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));
3938

4039
/**
4140
* @brief Overload for v1 of the LK tracking function
@@ -52,11 +51,11 @@ void trackOpticalFlowLK(InputArray src, InputArray dst,
5251
* @param winSize Size of window for optical flow searching. Width and height ust be odd numbers. Suggested values are 5, 7 or 9
5352
* @param maxIterations Maximum number of iterations to try
5453
*/
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);
6059

6160
//! @}
6261

0 commit comments

Comments
 (0)