unsharpMask static method

Uint8List unsharpMask(
  1. Uint8List gray,
  2. int width,
  3. int height, {
  4. double amount = 1.0,
  5. double blurSigma = 1.0,
})

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,
  );
}