Skip to content

Hog features normalization #2335

Closed
Closed

Description

@aplavin

Description

When normalizing HOG feature blocks, currently scikit-image uses this formula: normalised_blocks[y, x, :] = block / np.sqrt(block.sum() ** 2 + eps). What's the point of squaring and immediately taking square root? I guess np.sqrt(block.sum() ** 2 + eps) can be replaced with np.abs(block.sum()) + eps for less confusion (maybe changing the eps values also - it's here just to prevent division by zero, as I know).
Or possibly to np.sqrt((block ** 2).sum() + eps), if that was intended initially?

Activity

  1. soupault commented on Oct 9, 2016

    @soupault
    Member

    @aplavin Hi! Thanks for reporting! I don't see a strong reason either. Will address this shortly.
    If you are looking for a different block normalization methods, they will come in with #2040.

  2. added this to the 0.13 milestone on Oct 9, 2016
  3. self-assigned this
    on Oct 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions