1. 参考文献
Guo C, Ma Q, Zhang L. Spatio-temporal Saliency detection using phase spectrum of quaternion fourier transform[J]. 2008:1-8.
2. 模型实现
2.1 显著性检测公共头文件
#ifndef SALIENTCOMMON_H
#define SALIENTCOMMON_H
// std lib
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
// opencv lib
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/imgcodecs/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/ml/ml.hpp>
using namespace std;
using namespace cv;
#endif // SALIENTCOMMON_H
2.2 显著性检测头文件
#ifndef SALIENTPFT_H
#define SALIENTPFT_H
#include "salientcommon.h"
// Guo C, Ma Q, Zhang L. Spatio-temporal Saliency detection using phase spectrum of quaternion fourier transform[J]. 2008:1-8.
class salientPFT
{
public:
salientPFT(Mat&a