Fix corruption exception in StaticSaliencySpectralResidual
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: d.bouron <d.bouron@criteo.com>
Showing
Please
register
or
sign in
to comment