






from PIL import Image







def       A__				(   _a	:       Tuple		,	_a	:       Optional[Any]						):





 '''simple docstring'''







 snake_case__	:     List[str]											=(259 * (level + 255)) / (255 * (259 - level))

 def contrast(_a	:       int						) -> int:
  return int(128 + factor * (c - 128)						)

 return img.point(_a						)


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







from abc import ABC, abstractmethod
from argparse import ArgumentParser







class 							lowerCAmelCase__   ( __lowercase						):

						@staticmethod
						@abstractmethod
						def 			A_					(      a					)       ->   Union[str, Any]:


								'''simple docstring'''

								raise NotImplementedError()







						@abstractmethod
						def 			A_					(      self					)       ->   List[Any]:


								'''simple docstring'''

								raise NotImplementedError()



