


"""simple docstring"""






from PIL import Image
def      lowerCamelCase       (     _UpperCamelCase		:      Image       ,			_UpperCamelCase		:      int							)		->       Image:

							'''simple docstring'''



							__UpperCAmelCase   :						List[str]      							=					(2_5_9 * (level + 2_5_5)) / (2_5_5 * (2_5_9 - level))

							def contrast(_UpperCamelCase		:      int							) -> int:
														return int(1_2_8 + factor * (c - 1_2_8)							)

							return img.point(_UpperCamelCase							)


if __name__ == "__main__":
							# Load image
							with Image.open('image_data/lena.jpg') as img:
														# Change contrast to 170
														UpperCAmelCase    :     Any   						=		change_contrast(img, 170)
														cont_img.save('image_data/lena_high_contrast.png', format='png')




"""simple docstring"""






from ..utils import DummyObject, requires_backends





class      lowerCamelCase__   (     metaclass=A				):







					"""simple docstring"""


					__a	       =							["""note_seq"""]






					def __init__(       self    : List[Any] ,       *UpperCamelCase    : List[Any] ,       **UpperCamelCase    : Tuple  ):
												'''simple docstring'''






												requires_backends(self ,       ["""note_seq"""]  )






					@classmethod
					def lowerCamelCase__							(       cls    : Union[str, Any] ,       *UpperCamelCase    : Union[str, Any] ,       **UpperCamelCase    : str  ):
												'''simple docstring'''






												requires_backends(cls ,       ["""note_seq"""]  )






					@classmethod
					def lowerCamelCase__							(       cls    : List[str] ,       *UpperCamelCase    : Optional[Any] ,       **UpperCamelCase    : Union[str, Any]  ):
												'''simple docstring'''






												requires_backends(cls ,       ["""note_seq"""]  )
