Function unsharpen
pub fn unsharpen<I, P, S>(
image: &I,
sigma: f32,
threshold: i32,
) -> ImageBuffer<P, Vec<S>>
Available on crate feature
dep_image
only.Expand description
Performs an unsharpen mask on the supplied image.
sigma
is the amount to blur the image by.
threshold
is the threshold for minimal brightness change that will be sharpened.
See https://en.wikipedia.org/wiki/Unsharp_masking#Digital_unsharp_masking