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

Bug in esvm_detect #62

Open
rosenfeldamir opened this issue Aug 2, 2012 · 3 comments
Open

Bug in esvm_detect #62

rosenfeldamir opened this issue Aug 2, 2012 · 3 comments

Comments

@rosenfeldamir
Copy link

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

@quantombone
Copy link
Owner

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!)

@quantombone
Copy link
Owner

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.

@rosenfeldamir
Copy link
Author

Hi Tomasz,
I'm not really familiar with how to work with github. I'll take the time to
get acquainted to it if I find more stuff that I'd like to change. For the
meantime, I don't mind if I don't get credit (or blame..) for this change.

Cheers,
-Amir

On Fri, Aug 10, 2012 at 10:24 AM, Tomasz Malisiewicz <
[email protected]> wrote:

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.


Reply to this email directly or view it on GitHubhttps://github.com//issues/62#issuecomment-7635877.

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

No branches or pull requests

2 participants