Conversation
modules/imgproc/src/hough.cpp
Outdated
|
|
||
| CV_Assert(!_image.empty() && _image.type() == CV_8UC1 && (_image.isMat() || _image.isUMat())); | ||
| CV_Assert(_circles.isMat() || _circles.isVector()); | ||
| CV_Assert(_circles.isMat() || _circles.isUMat() || _circles.isVector()); |
There was a problem hiding this comment.
IMHO, we don't really need this check at all (whole CV_Assert statement). It is source of similar problems in the future.
.copyTo(_circles) (line 1710) says if container is not supported.
There was a problem hiding this comment.
IMHO, we don't really need this check at all. It is source of similar problems in the future.
i've no problem closing this
(indeed, it might be better to keep it as is, than to make it look like it is doing anything useful with UMat)
.copyTo(_circles) (line 1710) says if container is not supported.
hmm, i dont run into any issue using master branch (why would coying a Mat to UMat be a problem ?)
There was a problem hiding this comment.
No need to close, just remove this CV_Assert line (we don't need to duplicate checks, it tries to bring checks from .copyTo, but current attempt is not complete and would be broken in the future again).
i dont run into any issue
as expected.
imgproc: remove asserts for circles_ in HoughCircles

imgproc: add a check for UMat in HoughCircles
resolves #20913
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.