visfeats.rms#

visfeats.rms(image: Image) → float#

Compute the root-mean-square (RMS) contrast of an image.

The image is converted to 8-bit grayscale and the RMS contrast is the population standard deviation of the pixel intensities (values in [0, 255]).

Parameters:
imageImage

Input image in any Pillow mode; converted to grayscale internally.

Returns:
float

RMS contrast. 0 for a uniform image; 127.5 is the maximum.