Struct lcms2::ToneCurveRef []

pub struct ToneCurveRef(_);

Methods

impl ToneCurveRef
[src]

Creates a tone curve that is the inverse of given tone curve.

Creates a tone curve that is the inverse of given tone curve. In the case it couldn’t be analytically reversed, a tablulated curve of nResultSamples is created.

Composites two tone curves in the form Y-1(X(t)) (self is X, the argument is Y)

Estimates the apparent gamma of the tone curve by using least squares fitting. Precision: The maximum standard deviation allowed on the residuals, 0.01 is a fair value, set it to a big number to fit any curve, mo matter how good is the fit.

Evaluates the given number (u16 or f32) across the given tone curve.

This function is significantly faster for u16, since it uses a pre-computed 16-bit lookup table.

Trait Implementations

impl ForeignTypeRef for ToneCurveRef

The raw C type.

Constructs a shared instance of this type from its raw type.

Constructs a mutable reference of this type from its raw type.

Returns a raw pointer to the wrapped value.

impl Debug for ToneCurveRef
[src]

Formats the value using the given formatter.