-
Notifications
You must be signed in to change notification settings - Fork 155
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
Bug in esvm_detect #62
Comments
Thanks Amir for catching this! I might have already fixed this issue in my development branch as I've refactored a lot of things. I haven't pushed any changes into the main branch because people started using it and I don't have enough time to always make sure it is stable. I've been slow on replying because I stopped having github email me notifications and they've changed their interface a bit (so it took me a few days to notice I have notifications pending!) |
Hey Amir, do you know how to do pull requests in github? The idea is that you can for my code, fix your own fork. Then if you think that your fix is worthy of spreading to my master branch, you submit a pull request. I believe that way you get credited with the bugfix/extension and it helps everybody out. I would love to part-take in more forking, branching, etc. The catch is that you have to perform the pull requests with one fix at a time, so that I can clearly see what you changed. Let me know if you're interested in doing things this way. |
Hi Tomasz, Cheers, On Fri, Aug 10, 2012 at 10:24 AM, Tomasz Malisiewicz <
|
in line 291 of esvm_detect pyrN = cellfun... is calculated for the number of HOGS that fit inside each level of the pyramid.
however, the prod of a negative size will be positive, which leads to zeros at the end of the matrix X. Later, offsets(2,bb) is referenced, which may be out of range since size(offsets,2) < size(X,2).
instead of :
pyr_N = cellfun(@(x)prod([size(x,1) size(x,2)] -S+1),t.hog);
it should be:
pyr_N = cellfun(@(x)prod(max(0,[size(x,1) size(x,2)] -S+1)),t.hog);
-Amir
The text was updated successfully, but these errors were encountered: