unsharpMask static method
Applies Unsharp Mask sharpening.
Enhances edges by: sharpened = original + amount × (original - blurred)
amount — Sharpening strength (0.5–2.0 typical).
blurSigma — Sigma for the Gaussian blur pass.
Implementation
static Uint8List unsharpMask(
Uint8List gray,
int width,
int height, {
double amount = 1.0,
double blurSigma = 1.0,
}) {
return NoiseReductionEngine.unsharpMask(
gray,
width,
height,
amount: amount,
blurSigma: blurSigma,
);
}