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

solves issue #10687 #10688

Merged
merged 1 commit into from Jan 26, 2018
Merged

solves issue #10687 #10688

merged 1 commit into from Jan 26, 2018

Conversation

LaurentBerger
Copy link
Contributor

resolves #10687

@savuor savuor self-assigned this Jan 25, 2018
@@ -2449,17 +2449,18 @@ void cv::calcBackProject( InputArrayOfArrays images, const std::vector<int>& cha
double scale )
{
CV_INSTRUMENT_REGION()

if (hist.dims() != 3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to compare like that: if(hist.dims() <= 2) to avoid histograms of higher dimensions.

@savuor
Copy link
Contributor

savuor commented Jan 26, 2018

👍

@opencv-pushbot opencv-pushbot merged commit 2ebf4e0 into opencv:master Jan 26, 2018
@alalek
Copy link
Member

alalek commented Jan 26, 2018

BTW, New functionality should be covered by tests.

@LaurentBerger LaurentBerger deleted the calcback branch January 26, 2018 19:20
@LaurentBerger
Copy link
Contributor Author

LaurentBerger commented Jan 27, 2018

@alalek what do you mean? calcBackProject is not tested (except in 8 tests from OCL_Imgproc/CalcBackProject)? or 3d calcbackproject?

@alalek
Copy link
Member

alalek commented Jan 27, 2018

I mean that 3D case is not tested. We need some test to avoid future regressions.

@savuor savuor mentioned this pull request Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calcbackproject exception in 3d
4 participants