pyaesthetics.contrast.contrast_rms

pyaesthetics.contrast.contrast_rms(img)

This function evaluates the RMS (Root Mean Square) contrast of an image. The RMS contrast is calculated as the standard deviation of pixel intensities in the grayscale version of the image.

Parameters:

img (numpy.ndarray) – image to analyze, in RGB

Returns:

RMS contrast

Return type:

float