Gamma correction or gamma is a nonlinear operation used to encode and decode luminance in video or images.