You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
@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.
Activity
soupault commentedon Oct 9, 2016
@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.