Struct lcms2::ToneCurve []

pub struct ToneCurve(_);

Owned version of ToneCurveRef

Methods

impl ToneCurve
[src]

[src]

Simplified wrapper to new_parametric. Builds a parametric curve of type 1.

[src]

Builds a tone curve based on a table of 16-bit values. Tone curves built with this function are restricted to 0…1.0 domain.

[src]

Builds a tone curve based on a table of floating point values. Tone curves built with this function are not restricted to 0…1.0 domain.

[src]

See Table 52 in LCMS documentation for descriptino of the types.

  1. Exponential
  2. CIE 122-1966
  3. IEC 61966-3
  4. IEC 61966-2.1 (sRGB)
  5. See PDF
  6. Identical to 5, unbounded.
  7. See PDF
  8. See PDF
  9. (108) S-Shaped sigmoidal

Always use 10-parameter slice for plug-in types.

Methods from Deref<Target = ToneCurveRef>

[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 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

Executes the destructor for this type. Read more

impl Clone for ToneCurve

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Deref for ToneCurve

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for ToneCurve

Mutably dereferences the value.

impl Borrow<ToneCurveRef> for ToneCurve

Immutably borrows from an owned value. Read more

impl AsRef<ToneCurveRef> for ToneCurve

Performs the conversion.