We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in charuco.cpp in the aruco module there seems to be an unnecessary explicit copy of an image.
void detectCharucoDiamond(InputArray _image, InputArrayOfArrays _markerCorners,… …
void detectCharucoDiamond(InputArray _image, InputArrayOfArrays _markerCorners,…
// convert input image to grey Mat grey; if(_image.type() == CV_8UC3) cvtColor(_image, grey, COLOR_BGR2GRAY); else _image.copyTo(grey);
If the image already is a grayscale-image it is explicitly copied. grey = _image.getMat(); should do.
grey = _image.getMat();
EDIT: same in _selectAndRefineChessboardCorners()
_selectAndRefineChessboardCorners()
The text was updated successfully, but these errors were encountered:
grey = _image.getMat()
doesn't copy buffer contents.
Sorry, something went wrong.
grey = _image.getMat() doesn't copy buffer contents.
Yes. The image is an InputArray and it is not necessary to copy the data here.
Agreed. Implementation doesn't modify data from gray Mat.
gray
Feel free to propose PR (preferable to 3.4 branch).
PR #2785 against 3.4
No branches or pull requests
in charuco.cpp in the aruco module there seems to be an unnecessary explicit copy of an image.
void detectCharucoDiamond(InputArray _image, InputArrayOfArrays _markerCorners,…
…
If the image already is a grayscale-image it is explicitly copied.
grey = _image.getMat();
should do.EDIT:
same in
_selectAndRefineChessboardCorners()
The text was updated successfully, but these errors were encountered: