diff --git a/modules/cudaimgproc/include/opencv2/cudaimgproc.hpp b/modules/cudaimgproc/include/opencv2/cudaimgproc.hpp index 0bc4e97d7..d72700168 100644 --- a/modules/cudaimgproc/include/opencv2/cudaimgproc.hpp +++ b/modules/cudaimgproc/include/opencv2/cudaimgproc.hpp @@ -578,6 +578,9 @@ public: @param stream Stream for the asynchronous version. */ CV_WRAP virtual void detect(InputArray image, OutputArray corners, InputArray mask = noArray(), Stream& stream = Stream::Null()) = 0; + + CV_WRAP virtual void setMaxCorners(int maxCorners) = 0; + CV_WRAP virtual void setMinDistance(double minDistance) = 0; }; /** @brief Creates implementation for cuda::CornersDetector . diff --git a/modules/cudaimgproc/src/gftt.cpp b/modules/cudaimgproc/src/gftt.cpp index 540534a87..2d3c51297 100644 --- a/modules/cudaimgproc/src/gftt.cpp +++ b/modules/cudaimgproc/src/gftt.cpp @@ -69,7 +69,8 @@ namespace int blockSize, bool useHarrisDetector, double harrisK); ~GoodFeaturesToTrackDetector(); void detect(InputArray image, OutputArray corners, InputArray mask, Stream& stream); - + void setMaxCorners(int maxCorners) CV_OVERRIDE { maxCorners_ = maxCorners; } + void setMinDistance(double minDistance) CV_OVERRIDE { minDistance_ = minDistance; } private: int maxCorners_; double qualityLevel_;