mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 17:24:28 +08:00

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>