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