Struct lcms2::ToneCurveRef []

pub struct ToneCurveRef(_);

Tone curves are powerful constructs that can contain curves specified in diverse ways.

The curve is stored in segments, where each segment can be sampled or specified by parameters. A 16.bit simplification of the whole curve is kept for optimization purposes. For float operation, each segment is evaluated separately. Plug-ins may be used to define new parametric schemes.

Methods

impl ToneCurveRef
[src]

[src]

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

[src]

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.

[src]

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

[src]

Returns TRUE if the tone curve contains more than one segment, FALSE if it has only one segment.

[src]

Returns an estimation of cube being an identity (1:1) in the [0..1] domain. Does not take unbounded parts into account. This is just a coarse approximation, with no mathematical validity.

[src]

Returns an estimation of monotonicity of curve in the [0..1] domain. Does not take unbounded parts into account. This is just a coarse approximation, with no mathematical validity.

[src]

Does not take unbounded parts into account.

[src]

[src]

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.

[src]

Smoothes tone curve according to the lambda parameter. From: Eilers, P.H.C. (1994) Smoothing and interpolation with finite differences. in: Graphic Gems IV, Heckbert, P.S. (ed.), Academic press.

Important traits for &'a [u8]
[src]

Tone curves do maintain a shadow low-resolution tabulated representation of the curve. This function returns a pointer to this table.

[src]

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 ToOwned for ToneCurveRef

Creates owned data from borrowed data, usually by cloning. Read more

[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl Borrow<ToneCurveRef> for ToneCurve

Immutably borrows from an owned value. Read more

impl AsRef<ToneCurveRef> for ToneCurve

Performs the conversion.

impl ForeignTypeRef for ToneCurveRef

The raw C type.

Important traits for &'a mut I
[src]

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

Important traits for &'a mut I
[src]

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

[src]

Returns a raw pointer to the wrapped value.

impl Debug for ToneCurveRef
[src]

[src]

Formats the value using the given formatter. Read more