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: 10, 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 moreSource§impl Debug for SharpenOptions
impl Debug for SharpenOptions
Auto Trait Implementations§
impl Freeze for SharpenOptions
impl RefUnwindSafe for SharpenOptions
impl Send for SharpenOptions
impl Sync for SharpenOptions
impl Unpin for SharpenOptions
impl UnwindSafe for SharpenOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more