It may get -nan value while calculate the feature of lsvm (Patch #1453)
Description
While the image have a block of the same value, the function of "normalizeAndTruncate(*,*)"(in file featurepyramid.cpp) will happen that zero divides zero(-nan).
This is excluded in the author's matlab code by adding small number(eps = 0.0001) before dividing.
The function "PCAFeatureMaps(*) may also have the same problem.
Associated revisions
possibly fixed bug #1453
History
Updated by Alexander Shishkov almost 13 years ago
- Tracker changed from Bug to Patch
- Target version deleted ()
Updated by Alexander Shishkov almost 13 years ago
- Assignee deleted (
Vadim Pisarevsky)
Updated by Vadim Pisarevsky almost 13 years ago
without a test sample, it would take some extra time to reproduce the bug. However, I followed your advice and put extra "+FLT_EPSILON" in normalizeAndTruncate (SVN trunk, r7631). Looks like PCAFeatureMaps() should not have such problem.
If the bug is still there, please, reopen the ticket.
- Status changed from Open to Done
- Assignee set to Vadim Pisarevsky
Updated by Alexander Shishkov almost 13 years ago
- Target version set to 2.4.0