mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-19 19:44:14 +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>
15 lines
390 B
C++
15 lines
390 B
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html.
|
|
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
|
#define __OPENCV_TEST_PRECOMP_HPP__
|
|
|
|
#include "opencv2/ts.hpp"
|
|
#include "opencv2/saliency.hpp"
|
|
|
|
namespace opencv_test {
|
|
using namespace saliency;
|
|
}
|
|
|
|
#endif
|