GithubHelp home page GithubHelp logo

foteli's Introduction

Foteli

This project aims at exploring and providing high-quality, perceptually plausible HDR tone mapping.

Provided are a C API for tone mapping Rec. 2020 + PQ to sRGB, as well as a command-line tool that can be run on image files.

C API usage

In a nutshell:

FoteliParams* params = FoteliCreateParams();
FoteliSetFloatBuffers(params, &red, &green, &blue);
FoteliSetImageSize(params, width, height);

/* Optional, defaults to width: */
FoteliSetRowStride(params, row_stride);

if (const char* error_message = FoteliValidateParams(params)) {
  fprintf(stderr, "Foteli error: %s\n", error_message);
  exit(EXIT_FAILURE);
}
FoteliToneMap(params);
FoteliDestroyParams(params);

Command-line tool usage

$ foteli pq_input.png srgb_output.png

Future plans

In the future, we hope to improve this codebase in the following ways:

  • better performance (the current version is written in naïve C++ with few optimizations);

  • support for other input and output colorspaces (at the very least, linear input, and wider output gamuts);

  • exploring other tone mapping approaches.

We plan to maintain API and ABI stability while doing so.

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

foteli's People

Contributors

sboukortt 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.