pub fn unsharpen<I, P, S>(
image: &I,
sigma: f32,
threshold: i32,
) -> ImageBuffer<P, Vec<S>>
Expand description
Performs an unsharpen mask on the supplied image.
ยงArguments:
sigma
- is the amount to blur the image by.threshold
- is the threshold for minimal brightness change that will be sharpened.
This method typically assumes that the input is scene-linear light. If it is not, color distortion may occur.
See Digital unsharp masking for more information.