• d.bouron's avatar
    Fix corruption exception in StaticSaliencySpectralResidual · 0e03fea4
    d.bouron authored
    In some case, Discrete Fourier Transform in computeSaliencyImpl() returns
    magnitude matrix which contains zero values.
    Then, log() returns -inf values and normalization with blur() returns -nan.
    When computeBinaryMap() is called double free or corruption exception occurs
    because kmeans() fails to compute distance.
    Signed-off-by: 's avatard.bouron <d.bouron@criteo.com>
    0e03fea4
Name
Last commit
Last update
..
test_main.cpp Loading commit data...
test_precomp.hpp Loading commit data...
test_static_saliency_spectral_residual.cpp Loading commit data...