GithubHelp home page GithubHelp logo

cock-puncher / awarefoveation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from okantursun/awarefoveation

0.0 0.0 0.0 52.84 MB

Luminance-Contrast-Aware Foveated Rendering

Home Page: https://www.pdf.inf.usi.ch/projects/AdaptiveFoveation

License: MIT License

MATLAB 100.00%

awarefoveation's Introduction

Luminance-Contrast-Aware Foveated Rendering

This repository contains the Matlab implementation of the sigma predictor from:

Tursun, O. T., Arabadzhiyska-Koleva, E., Wernikowski, M., Mantiuk, R., Seidel, H. P., Myszkowski, K., & Didyk, P. (2019). Luminance-contrast-aware foveated rendering. ACM Transactions on Graphics (TOG), 38(4), 98.

In order to run the predictor please download matlabPyrTools by Simoncelli from

https://github.com/LabForComputationalVision/matlabPyrTools

and place it in the folder: ./matlabpyrtools

Then compile the MEX-files by running the following script:

./matlabpyrtools/MEX/compilePyrTools.m

and place the created files (*.mexw64, *.mexa64 or *.mexmaci64 depending on the platform) in Matlab path (see path, addpath, genpath and pathtool functions of Matlab).

Files

main.m : Provides the implementation of sigma predictor for an image patch. Feel free to use "help main" for info.

run_on_image.m: Runs the predictor on patches of an image and returns the predicted sigma map.

sample_run.m: Loads a sample image from the paper and runs the predictor. Try running this first.

get_params.m: Loads optimum predictor parameters learned using Simulated Annealing.

display_params.m: Returns the parameters such as resolution, physical size and the observation distance for the particular display used in our experiments. If the physical parameters of your display are significantly different from ours, you will need to define your display in this file and modify run_on_image.m:11-31 where those parameters are used.

disp1_luminance.mat and disp2_luminance.mat: Provides the calibration data for converting RGB to luminance for the displays that we used in our experiments. The predictor expects luminance (cd/m^2) as the input. If the calibration data does not exist, inverse gamma transformation may be used to approximately compute linear values from sRGB (gamma = 2.2).

Links

Our project website:

https://www.pdf.inf.usi.ch/projects/AdaptiveFoveation

My website:

https://www.pdf.inf.usi.ch/people/okan

awarefoveation's People

Contributors

okantursun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.