Skip to content

Latest commit

 

History

History
120 lines (72 loc) · 8.65 KB

overview.md

File metadata and controls

120 lines (72 loc) · 8.65 KB

Overview

Background on Cone Coordinates and mechanics of the underlying ideas behind Reuleaux.

For the math and detailed implementation information, check out the derivation.

Approach

An interpretation of Yedlin's approach to image formation is:

The major unknown in imitating this process is the model itself. That Cone Coordinates is not "perceptually uniform" and best resembles HSV quickly became clear, but its workings remained a mystery. Along came the rediscovery of...

Spherical Coordinates

A spherical coordinate model by Chen et al. scaled to domain $[0, 1]$ (hereafter referred to as "Spherical Coordinates") appears to perfectly match a plot Yedlin posted in 2018:

Conical (2018) Spherical Coordinates

However, it does not match the model demonstrated in the Display Prep Demo Followup (2019). With $\text{distance}^{1/\text{satch}}$, $\text{satch}=1.6$:

Cone Coordinates (2019) Spherical Coordinates

In another plot from late 2017, the shell has intricate Spherical Coordinates-like petals that would be smooth edges in Reuleaux and likely Cone Coordinates (2019) because of their intensity measure.

WIP Conical (2017) Spherical Coordinates Reuleaux

These discrepancies suggest two separate versions.

Both HSV and Cone Coordinates (2019) have flat positive faces with comparable 2D curvature, indicating that they may use the same measure.

Cone Coordinates (2019) HSV Spherical Coordinates

Modifying Spherical/Cylindrical Coordinates to use HSV's value component, $\max(R, G, B)$, verifies this and aligns the remaining regions.

Cone Coordinates Cone Coordinates-like

Max RGB

The mechanics and implications of the max are surprisingly difficult to grasp when the scope is the entire chain. Following is its obvious benefits mixed in with plenty of speculation. A mean is used for comparison, but its advantages apply against most other measures.

Distance Extrapolation

For an arbitrary pure-ish mixture, e.g., $(0.9, 0.2, 0.1)$, the intensity via mean is $\frac{0.9 + 0.2 + 0.1}{3} = 0.4$. Obviously $0.4 \notin \lbrace0.9, 0.2, 0.1\rbrace$, therefore increasing purity1 by extrapolating past RGB from the mean affects all three scalars. Since $0.4 < \max(0.9, 0.2, 0.1)$, this extrapolates intensity which may pass domain bounds, as is noticeable with Spherical Coordinates' top. Directly:

$$ RGB' = \text{lerp}(\text{measure}, RGB, p) $$

Using the previous example triplet, with $p = 1.3$, $RGB' \approx (1.05, 0.14, 0.001)$. Notice $R > 1$, which will clip to the domain bounds, altering the ratios and skewing the result slightly. The max will never do this.

Purity Implications

An increase in radial distance changes RGB ratios only in relation to the max. Purity increases "downward", theoretically much like rigid emission film. Likewise, purity decreases "upward" toward metaphoric full transmission.

Another facet is that purity holds no weight in the first place; maximum purity equals maximum intensity: $\max(1, 0, 0) = \max(1, 1, 1)$. A mean yields $\frac{1}{3}$, which seems rather polluted.

Smoothness

The max is not differentiable at intersections.

Input Max Result

Large distance adjustments can result in perceived spatial fringing at those near-intersection extremes, as the spikes remain fixed while values below move. It is possible to significantly lessen this effect by approximating the max, however there are several disadvantages to doing so. In practice this rarely seems to be an issue.

Attenuation

As an attenuation factor, most other measures will leave behind high purity because of the aforementioned "pollution", whereas the max unwaveringly hits all purities:

Mean Mid Max

In the context of image forming:

Mean Max

Notice the corners.

Reuleaux vs. Other Models

Spherical Coordinates

Reuleaux uses normalized cylindrical coordinates instead of spherical and replaces the Euclidean norm with the max.

HSV

HSV is very similar, using the same intensity measure. However, Reuleaux has several advantages: simplicity and consistency of implementation, ease of understanding and a direct trigonometric definition.

CIE LCh, OkLCh, etc.

Reuleaux does not try to be "perceptually uniform". It's merely a different representation of existing stimulus models that by happenstance exposes attribute-in-effect components.

Cone Coordinates

Plots are mostly identical.

Cone Coordinates Reuleaux

Footnotes

  1. Using "purity" very loosely in the sense of a display, less so chromaticity.