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§
source§impl Clone for SharpenOptions
impl Clone for SharpenOptions
source§fn clone(&self) -> SharpenOptions
fn clone(&self) -> SharpenOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more