Struct lcms2::ToneCurve []

pub struct ToneCurve(_);

Methods

impl ToneCurve
[src]

Methods from Deref<Target = ToneCurveRef>

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 ForeignType for ToneCurve

The raw C type.

The type representing a reference to this type.

Constructs an instance of this type from its raw type.

Returns a raw pointer to the wrapped value.

impl Drop for ToneCurve

A method called when the value goes out of scope. Read more

impl Deref for ToneCurve

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for ToneCurve

The method called to mutably dereference a value

impl Clone for ToneCurve
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more