1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 04:25:42 +08:00
Commit Graph

1 Commits

Author SHA1 Message Date
d.bouron
0e03fea432 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>
2018-06-26 18:34:09 +02:00