Skip to content
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

cv::cuda::norm works only for single channel images. #12785

Open
sam09 opened this issue Oct 9, 2018 · 1 comment
Open

cv::cuda::norm works only for single channel images. #12785

sam09 opened this issue Oct 9, 2018 · 1 comment
Labels
category: gpu/cuda (contrib) OpenCV 4.0+: moved to opencv_contrib

Comments

@sam09
Copy link
Contributor

sam09 commented Oct 9, 2018

CV_Assert( src1.type() == CV_8UC1 );

There does not seem to be any such constraint for the cpu version. Does removing this constraint have any side effects?

@alalek
Copy link
Member

alalek commented Oct 9, 2018

Defining multi-channel norm is a bit tricky. Use .reshape() before norm() call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: gpu/cuda (contrib) OpenCV 4.0+: moved to opencv_contrib
Projects
None yet
Development

No branches or pull requests

2 participants