Skip to content

5.x merge 4.x #3633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions modules/cudaimgproc/include/opencv2/cudaimgproc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,9 @@ class CV_EXPORTS_W CornersDetector : public Algorithm
@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 .
Expand Down
3 changes: 2 additions & 1 deletion modules/cudaimgproc/src/gftt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_;
Expand Down
2 changes: 1 addition & 1 deletion modules/ximgproc/src/edge_drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ void EdgeDrawingImpl::SplitSegment2Lines(double* x, double* y, int noPixels, int
{
// Start by fitting a line to MIN_LINE_LEN pixels
bool valid = false;
double lastA(0), lastB(0), error;
double lastA(0), lastB(0), error(0);
int lastInvert(0);

while (noPixels >= min_line_len)
Expand Down