Struct libvips::ops::CompassOptions

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

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.