Skip to content

Visual saliency detection models based on spectral analysis (spectral residual, PQFT), implemented via OpenCV C++.

License

Notifications You must be signed in to change notification settings

wandering007/spectral-based-saliency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spectral-based Saliency

Visual saliency algorithms based on spectral analysis models, implemented by OpenCV C++.

void SR_saliency(cv::Mat &img, cv::Mat &saliency_map);

img is the input grayscale image, saliency_map is the resulting 64x64 saliency map using the spectral residual algorithm proposed by [1].

void PQFT(cv::Mat &pre_img, cv::Mat &next_img, cv::Mat &saliency_map);

For video processing, pre_img is the previous video BGR frame, next_img is the current video BGR frame; For static image processing, pre_img and next_img should be the same. saliency_map is the resulting 64x64 saliency map using the PQFT algorithm proposed by [2].

References

[1] Hou, Xiaodi, and Liqing Zhang. "Saliency detection: A spectral residual approach." CVPR 2007.
[2] Guo, Chenlei, Qi Ma, and Liming Zhang. "Spatio-temporal saliency detection using phase spectrum of quaternion fourier transform." CVPR 2008.

License

MIT

About

Visual saliency detection models based on spectral analysis (spectral residual, PQFT), implemented via OpenCV C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages