Skip to content

fixed incorrect formulas in the algorithm camshift - #13760

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
AnastasiaaSenina:fix-bug
Feb 8, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
AnastasiaaSenina:fix-bug

Conversation

@AnastasiaaSenina

@AnastasiaaSenina AnastasiaaSenina commented Feb 4, 2019 •

Copy link
Copy Markdown
Contributor

Issue #9152
In the example of the post #9152 the calculated value of the variable "rotate_c" are negative. It can not be, because the formula by which it was calculated is the sum of squares.
screenshot_1

In the counterexample, the variable is negative and very close to zero (due to inaccurate calculations), i think, reasonable to add to avoid such cases theshold.

Comment thread modules/video/src/camshift.cpp Resolved
Comment thread modules/video/src/camshift.cpp Resolved
Comment thread modules/video/src/camshift.cpp Resolved
@alalek

alalek commented Feb 8, 2019

Copy link
Copy Markdown
Member

Eliminated unnecessary changes (iostream/empty lines) and as a "bugfix" this patch is rebased onto 3.4 branch.

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@opencv-pushbot
opencv-pushbot merged commit d7b1f28 into opencv:3.4 Feb 8, 2019
@alalek alalek mentioned this pull request Feb 8, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants