[][src]Struct libvips::ops::CompassOptions

pub struct CompassOptions {
    pub times: i32,
    pub angle: Angle45,
    pub combine: Combine,
    pub precision: Precision,
    pub layers: i32,
    pub cluster: i32,
}

Options for compass operation

Fields

times: i32

times: i32 -> Rotate and convolve this many times min: 1, max: 1000, default: 2

angle: Angle45

angle: Angle45 -> Rotate mask by this much between convolutions D0 -> VIPS_ANGLE45_D0 = 0 D45 -> VIPS_ANGLE45_D45 = 1 D90 -> VIPS_ANGLE45_D90 = 2 [DEFAULT] D135 -> VIPS_ANGLE45_D135 = 3 D180 -> VIPS_ANGLE45_D180 = 4 D225 -> VIPS_ANGLE45_D225 = 5 D270 -> VIPS_ANGLE45_D270 = 6 D315 -> VIPS_ANGLE45_D315 = 7 Last -> VIPS_ANGLE45_LAST = 8

combine: Combine

combine: Combine -> Combine convolution results like this Max -> VIPS_COMBINE_MAX = 0 [DEFAULT] Sum -> VIPS_COMBINE_SUM = 1 Min -> VIPS_COMBINE_MIN = 2 Last -> VIPS_COMBINE_LAST = 3

precision: Precision

precision: Precision -> Convolve with this precision Integer -> VIPS_PRECISION_INTEGER = 0 Float -> VIPS_PRECISION_FLOAT = 1 [DEFAULT] Approximate -> VIPS_PRECISION_APPROXIMATE = 2 Last -> VIPS_PRECISION_LAST = 3

layers: i32

layers: i32 -> Use this many layers in approximation min: 1, max: 1000, default: 5

cluster: i32

cluster: i32 -> Cluster lines closer than this in approximation min: 1, max: 100, default: 1

Trait Implementations

impl Clone for CompassOptions[src]

impl Debug for CompassOptions[src]

impl Default for CompassOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.