Skip to content

Commit

Permalink
Merge pull request #3830 from sturkmen72:upd_find_ellipses_cpp
Browse files Browse the repository at this point in the history
Fix: ximgproc::findEllipses modifies src image unexpectedly
  • Loading branch information
asmorkalov authored Nov 26, 2024
2 parents ec5e4c3 + a6ee365 commit 5409e01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/ximgproc/src/find_ellipses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1218,9 +1218,10 @@ void EllipseDetectorImpl::getTriplets413(VVP &pi, VVP &pj, VVP &pk,
}
}

void EllipseDetectorImpl::preProcessing(Mat1b &image, Mat1b &dp, Mat1b &dn) {
void EllipseDetectorImpl::preProcessing(Mat1b &src, Mat1b &dp, Mat1b &dn) {
// smooth image
GaussianBlur(image, image, _kernelSize, _sigma);
Mat image;
GaussianBlur(src, image, _kernelSize, _sigma);

// temp variables
Mat1b edges;// edge mask
Expand Down

0 comments on commit 5409e01

Please sign in to comment.