Struct libvips::ops::SharpenOptions

source ·
pub struct SharpenOptions {
    pub sigma: f64,
    pub x_1: f64,
    pub y_2: f64,
    pub y_3: f64,
    pub m_1: f64,
    pub m_2: f64,
}
Expand description

Options for sharpen operation

Fields§

§sigma: f64

sigma: f64 -> Sigma of Gaussian min: 0.000001, max: 10000, default: 0.5

§x_1: f64

x_1: f64 -> Flat/jaggy threshold min: 0, max: 1000000, default: 2

§y_2: f64

y_2: f64 -> Maximum brightening min: 0, max: 1000000, default: 10

§y_3: f64

y_3: f64 -> Maximum darkening min: 0, max: 1000000, default: 20

§m_1: f64

m_1: f64 -> Slope for flat areas min: 0, max: 1000000, default: 0

§m_2: f64

m_2: f64 -> Slope for jaggy areas min: 0, max: 1000000, default: 3

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.