An unofficial python implementation of using Kernel Foveated Rendering for image compression.
See the official resources for more information:
Website
Paper
Shadertoy
- Install Python with PyTorch, Numpy, Matplotlib, Pillow
- Create a file
image.png
- Run
python main.py
to generate a foveated image.
Please cite their paper if you use this code in your research.
@article{10.1145/3203199,
author = {Meng, Xiaoxu and Du, Ruofei and Zwicker, Matthias and Varshney, Amitabh},
title = {Kernel Foveated Rendering},
year = {2018},
issue_date = {July 2018},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
volume = {1},
number = {1},
url = {https://doi.org/10.1145/3203199},
doi = {10.1145/3203199},
journal = {Proc. ACM Comput. Graph. Interact. Tech.},
month = {jul},
articleno = {5},
numpages = {20},
keywords = {foveated rendering, eye-tracking, log-polar mapping, virtual reality, head-mounted displays, perception}
}