Skip to content

Improved colour upsampling with quadratic-sigmoid-based lookup #13

@Smilebags

Description

@Smilebags

An alternative to summed primaries for spectral upsampling is to use a quadratic sigmoid spectrum.

Any quadratic can be described with 3 coefficients so in that sense they can be considered equivalent to any 3-channel colour space. The process for this upsampling technique is to create a lookup table from XYZ to the quadratic's 3-coefficient space (ABC for now) which is then fed through a sigmoid function which compresses the range into 0-1. This way, any simple (one slope up, one slope down) spectrum can be defined with 3 coefficients.

We can utilise a simple 3D lookup table to take us from XYZ to ABC. Evaluating this spectrum is also efficient, though it might be slightly less efficient than the summed primaries approach. In the following example, A can be considered 'steepness', B is midpoint, and C is width.

https://www.desmos.com/calculator/mh7vofyfmz
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions