Struct PreparedBrettel1997Dichromat

Prepared Brettel 1997 full-dichromat transform for repeated application.

struct PreparedBrettel1997Dichromat(T)
  
if (is(T == float) || is(T == double));

The value owns only the two typed projection matrices and separation-plane coefficients required by the selected deficiency. It allocates nothing and carries no image, storage, threading, or gamut policy.

Obtain a valid value with prepareBrettel1997Dichromat. .init is a detectably invalid transform whose floating-point coefficients are NaN; applying it produces NaN components rather than a plausible simulation.

Methods

NameDescription
transform (color) Applies the prepared transform to one linear-light sRGB color.
transformInto (input, output) Applies the prepared transform to fixed-cardinality caller-owned storage.
tryTransformInto (input, output) Applies the prepared transform to runtime-sized caller-owned storage.