Giter Site home page Giter Site logo

Gamma correction about colors.jl HOT 4 OPEN

juliagraphics avatar juliagraphics commented on August 25, 2024
Gamma correction

from colors.jl.

Comments (4)

timholy avatar timholy commented on August 25, 2024

There's the invert_rgb_compand function; I can verify that repeatedly converting RGB->XYZ->RGB->XYZ preserves the value. But beyond that, I have no comment; colorimetry is not really my area of strength, here I'm acting as a slightly-educated code-janitor.

from colors.jl.

rennis250 avatar rennis250 commented on August 25, 2024

I would at least like to see some interface for specifying my own gamma look up tables, as this is something that my colleagues and I always need fine-grained control over. I assume that high-end photography applications would also benefit from that kind of access. Aside from that though, I know next to nothing about color management practices. Do modern image and film formats carry metadata about this?

from colors.jl.

KelSolaar avatar KelSolaar commented on August 25, 2024

Do modern image and film formats carry metadata about this?

Images that embed ICC profiles will usually describe the colour component conversion function (EOCF / EOTF) that maps from non-linear R'G'B' video component signal to a tristimulus value at the display.

If by film formats you talk about movie camera output, it is an entire different beast, they may have different file formats and very different conversion functions based on customised logarithmic function, the way to describe that is highly inconsistent.

We have a quite comprehensive amount of those here: https://github.com/colour-science/colour/tree/develop/colour/models/rgb/conversion_functions

And some more tied to RGB colourspaces definitions are available here: https://github.com/colour-science/colour/tree/develop/colour/models/rgb/dataset

Hope that helps :)

from colors.jl.

AndrewGibb avatar AndrewGibb commented on August 25, 2024

Do modern image and film formats carry metadata about this?

Some brief notes as I stick my head above the parapet of castle Thesis-writing:
In broadcast video, gamma correction functions are defined in standards, and the file format/wire format do not contain metadata specifying the parameters. There is a research project in BBC R&D at the moment which I plan to lobby to transmit data in linear light, and apply gamma at the display.
I've been working with ARRI ARRIRAW and RED EXR files for my thesis. ARRIRAW uses a logarithmic mapping from V_in to V_out, which I have not been able to find a formula for, but they do provide a free look-up table generator on the web. The EXR file format encodes gamma correction within the file format, alongside pixel values in linear light.

from colors.jl.

Related Issues (20)

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.