/// <summary> /// Lit if average value of RGB is greater than half. /// </summary> /// <param name="pixel">Input pixel</param> /// <returns>True if average value of RGB is greater than half.</returns> public static bool LinearBrightnessConvertor(IPixel pixel) { var vector = pixel.ToScaledVector4(); return(vector.X + vector.Y + vector.Z > 1.5); }