Struct 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§

Source§

impl Clone for CompassOptions

Source§

fn clone(&self) -> CompassOptions

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CompassOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CompassOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.