Skip to content

ouyangzhibo/Image_Foveation_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Foveation Python

Python implementation of image retina transformation. For detailed algorithm, please refer to the following papers:

Perry, Jeffrey S., and Wilson S. Geisler. "Gaze-contingent real-time simulation of arbitrary visual fields." Human vision and electronic imaging VII. Vol. 4662. International Society for Optics and Photonics, 2002.

Jiang, Ming, et al. "Salicon: Saliency in context." Proceedings of the IEEE conference on computer vision and pattern recognition. 2015.

Prerequisites

  • Python 3.x
  • Numpy
  • OpenCV

Usage

python retina_transform.py [image_path]

To adjust the degree of blur and size of the foveal region (full-reolustion pixels), one can increase or decrease the value of k and p and alpha in the function foveat_img.

Example

About

Python implementation of image foveation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages