Skip to content

solves issue #10687#10688

Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom
LaurentBerger:calcback
Jan 26, 2018
Merged

solves issue #10687#10688
opencv-pushbot merged 1 commit intoopencv:masterfrom
LaurentBerger:calcback

Conversation

@LaurentBerger
Copy link
Copy Markdown
Contributor

resolves #10687

@savuor savuor self-assigned this Jan 25, 2018
{
CV_INSTRUMENT_REGION()

if (hist.dims() != 3)
Copy link
Copy Markdown
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
Copy Markdown
Contributor

savuor commented Jan 26, 2018

👍

@opencv-pushbot opencv-pushbot merged commit 2ebf4e0 into opencv:master Jan 26, 2018
@alalek
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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