Skip to content

Commit

Permalink
Merge pull request #2785 from esopalumpa:3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Dec 10, 2020
2 parents 21c14f5 + 4d9e025 commit 332ae5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/aruco/src/charuco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ static int _selectAndRefineChessboardCorners(InputArray _allCorners, InputArray
if(_image.type() == CV_8UC3)
cvtColor(_image, grey, COLOR_BGR2GRAY);
else
_image.copyTo(grey);
grey = _image.getMat();

const Ptr<DetectorParameters> params = DetectorParameters::create(); // use default params for corner refinement

Expand Down Expand Up @@ -766,7 +766,7 @@ void detectCharucoDiamond(InputArray _image, InputArrayOfArrays _markerCorners,
if(_image.type() == CV_8UC3)
cvtColor(_image, grey, COLOR_BGR2GRAY);
else
_image.copyTo(grey);
grey = _image.getMat();

// for each of the detected markers, try to find a diamond
for(unsigned int i = 0; i < _markerIds.total(); i++) {
Expand Down

0 comments on commit 332ae5b

Please sign in to comment.