contrast

mipylib.imagelib.filter.contrast(src, brightness=1, contrast=1)

A filter to change the brightness and contrast of an image.

Parameters:
  • src – (image) Source image.

  • brightness – (float) Brightness.

  • contrast – (float) Contrast.

Returns:

Destination image.