Skip to content

Commit

Permalink
Merge pull request #3892 from asmorkalov:as/fastcv_export_fix
Browse files Browse the repository at this point in the history
Fixed export for Optical Flow PyrLK extention for FastCV.
  • Loading branch information
asmorkalov authored Mar 3, 2025
2 parents ce3c668 + 84e8a73 commit c44f7ee
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions modules/fastcv/include/opencv2/fastcv/tracking.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ namespace fastcv {
* @param winSize Size of window for optical flow searching. Width and height ust be odd numbers. Suggested values are 5, 7 or 9
* @param termCriteria Termination criteria containing max number of iterations, max epsilon and stop condition
*/
void trackOpticalFlowLK(InputArray src, InputArray dst,
InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
InputArray ptsIn, OutputArray ptsOut, InputArray ptsEst,
OutputArray statusVec, cv::Size winSize = {7, 7},
cv::TermCriteria termCriteria = {cv::TermCriteria::MAX_ITER | cv::TermCriteria::EPS,
/* maxIterations */ 7,
/* maxEpsilon */ 0.03f * 0.03f});
CV_EXPORTS_W void trackOpticalFlowLK(InputArray src, InputArray dst,
InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
InputArray ptsIn, OutputArray ptsOut, InputArray ptsEst,
OutputArray statusVec, cv::Size winSize = cv::Size(7, 7),
cv::TermCriteria termCriteria = cv::TermCriteria(cv::TermCriteria::MAX_ITER | cv::TermCriteria::EPS,
/* maxIterations */ 7, /* maxEpsilon */ 0.03f * 0.03f));

/**
* @brief Overload for v1 of the LK tracking function
Expand All @@ -52,11 +51,11 @@ void trackOpticalFlowLK(InputArray src, InputArray dst,
* @param winSize Size of window for optical flow searching. Width and height ust be odd numbers. Suggested values are 5, 7 or 9
* @param maxIterations Maximum number of iterations to try
*/
void trackOpticalFlowLK(InputArray src, InputArray dst,
InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
InputArrayOfArrays srcDxPyr, InputArrayOfArrays srcDyPyr,
InputArray ptsIn, OutputArray ptsOut,
OutputArray statusVec, cv::Size winSize = {7, 7}, int maxIterations = 7);
CV_EXPORTS_W void trackOpticalFlowLK(InputArray src, InputArray dst,
InputArrayOfArrays srcPyr, InputArrayOfArrays dstPyr,
InputArrayOfArrays srcDxPyr, InputArrayOfArrays srcDyPyr,
InputArray ptsIn, OutputArray ptsOut,
OutputArray statusVec, cv::Size winSize = cv::Size(7, 7), int maxIterations = 7);

//! @}

Expand Down

0 comments on commit c44f7ee

Please sign in to comment.