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
There are other important problems with this code. For ex. it's not thread-safe. Or (related, but different) also all temporaries are class variables (blocks, blurImg, freImg, ...) for no good reason.
Uh oh!
There was an error while loading. Please reload this page.
In modules/img_hash/src/marr_hildreth_hash.cpp:getMHKernel(), the line reads
kPtr[col] = (2-a)*std::exp(a/2);
While it seems it should be
kPtr[col] = (2-a)*std::exp(-a/2);
At least that's what the original code does: https://github.com/aetilius/pHash/blob/master/src/pHash.cpp#L610
And that also matches the formula given on wikipedia: https://en.wikipedia.org/wiki/Ricker_wavelet
The text was updated successfully, but these errors were encountered: