gammaCorrection static method

Uint8List gammaCorrection(
  1. Uint8List gray,
  2. int width,
  3. int height, {
  4. double gamma = 0.6,
})

Applies Gamma Correction for low-light brightness enhancement.

Inspired by Apple Vision's auto-exposure compensation. gamma < 1.0 brightens the image (e.g., 0.5 for dark scenes). gamma > 1.0 darkens the image.

Implementation

static Uint8List gammaCorrection(
  Uint8List gray,
  int width,
  int height, {
  double gamma = 0.6,
}) {
  return NoiseReductionEngine.gammaCorrection(
    gray,
    width,
    height,
    gamma: gamma,
  );
}