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
{{ message }}
Repository navigation
Add different methods for HOG block normalization #2350
It would be nice if HOG implemented the other types of normalization mentioned in the paper (including L2-hys, L2-norm, L1-sqrt, and L1-norm). Right now L1-norm is always used and it was the worst method according to the original paper (besides not normalizing at all). Also, the L1-norm is done in an odd way that looks like it was supposed to be one of the other norms but it wasn't quite complete.
Even if not all of these normalization methods are made available, the default should not be the odd implemented L1-norm that it currently is (except for backwards compatibility I guess).
Mistake in my code for the L2-hys, the last line should have block_norm in the numerator (or change all instances of block_norm to block in the last two lines).
@coderforlife Hello! Are you looking for #2040? :)
Unfortunately, it is still lacking of reviews, so I'd be grateful if you move there and stress the core team members a little 😉.
I seem to be getting this same warning, how do I get ride of it? skimage_deprecation: Default value of block_norm==L1 is deprecated and will be changed to L2-Hys in v0.15
'be changed to L2-Hys in v0.15', skimage_deprecation)
@NicholasJohnson9149 This wasn't about a warning, this was about the fact that L1 used to be the only method. To get rid of the warning use a newer block normalization, like the following:
I agree that the warning (as it is currently implemented) is kind of annoying, but I couldn't come up with a more convenient alternative. Setting block_norm to L2-Hys (as @coderforlife already mentioned) should fix the issue.
Activity
coderforlife commentedon Oct 21, 2016
Note: this is referring to block normalization and not image data normalization (which has been deprecated in that function).
coderforlife commentedon Oct 21, 2016
Mistake in my code for the L2-hys, the last line should have
block_normin the numerator (or change all instances ofblock_normtoblockin the last two lines).soupault commentedon Oct 21, 2016
@coderforlife Hello! Are you looking for #2040? :)
Unfortunately, it is still lacking of reviews, so I'd be grateful if you move there and stress the core team members a little 😉.
coderforlife commentedon Oct 21, 2016
Duplicate of #1345, #2040, and #2335.
soupault commentedon Oct 21, 2016
Not fixed yet, so I reopen to have this as an extra reminder. 😈
[-]HOG Normalization[/-][+]Add different methods for HOG block normalization[/+]sciunto commentedon Jan 26, 2017
Close by @soupault
NicholasJohnson9149 commentedon Sep 5, 2017
I seem to be getting this same warning, how do I get ride of it? skimage_deprecation: Default value of
block_norm==L1is deprecated and will be changed toL2-Hysin v0.15'be changed to
L2-Hysin v0.15', skimage_deprecation)coderforlife commentedon Sep 5, 2017
@NicholasJohnson9149 This wasn't about a warning, this was about the fact that L1 used to be the only method. To get rid of the warning use a newer block normalization, like the following:
soupault commentedon Sep 6, 2017
I agree that the warning (as it is currently implemented) is kind of annoying, but I couldn't come up with a more convenient alternative. Setting
block_normtoL2-Hys(as @coderforlife already mentioned) should fix the issue.