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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in SSE2 version of fast detector #47

Merged
merged 2 commits into from
Jan 13, 2019
Merged

Fix bug in SSE2 version of fast detector #47

merged 2 commits into from
Jan 13, 2019

Conversation

jlblancoc
Copy link
Contributor

Hi, @edrosten, Thanks for your great library! 馃憤

Please, take a look at these two commits: one is a minor fix to -Wshadow warnings, but the important one is the fix to what seems a bug in the SSE2 code for faster.
The bug would reveal only if width!=stride, which might explain it went unnoticed (?). However, I can't explain the 3 in 3*w for grayscale images, so I set it to row_stride() anyway.

First: 3*w does not hold for grayscale images (!). 
Second: rowStride may be different than w.
jlblancoc referenced this pull request in MRPT/mrpt Jan 4, 2019
First: 3*w does not hold for grayscale images (!). 
Second: rowStride may be different than w.
edrosten pushed a commit that referenced this pull request Jan 13, 2019
This PR:
#47
shows a failure on sub images. Fix the test to highlight the failure
@edrosten edrosten mentioned this pull request Jan 13, 2019
@edrosten edrosten merged commit 702ba23 into edrosten:master Jan 13, 2019
@edrosten
Copy link
Owner

Thanks for the bug report. Turns out stride is the stride for 3 rows at once. I've fixed it in this PR:

#48

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.

None yet

2 participants