Skip to content

Bucket extraction for HoG is wrong #2

Description

@edubois

FYI, I think there is a mistake in your code:

grad_bucket(x, y) = cast<int>(round((atan2(y, x) * B / (float)M_PI))) % B;

This can be negative,
Shouldn't you add 2 * PI to the value atan result when it's negative and do a modulo pi?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions