pyaesthetics.contrast.contrast_michelson¶
- pyaesthetics.contrast.contrast_michelson(img)¶
This function evaluates the Michelson contrast of an image. The Michelson contrast is calculated based on the luminance channel (Y) of the YUV color space:
Michelson contrast = (maxY - minY) / (maxY + minY)
- Parameters:
img (numpy.ndarray) – image to analyze, in RGB
- Returns:
Michelson contrast
- Return type:
float