





from PIL import Image





def lowerCAmelCase__(__snake_case ,__snake_case							)       ->   Image:







 '''simple docstring'''







 def brightness(__snake_case							) -> float:
  return 128 + level + (c - 128)

 if not -255.0 <= level <= 255.0:
  raise ValueError('''level must be between -255.0 (black) and 255.0 (white)'''							)
 return img.point(__snake_case							)


if __name__ == "__main__":
   # Load image
   with Image.open("image_data/lena.jpg") as img:
      # Change brightness to 100
      _a						=   change_brightness(img, 100)
      brigt_img.save("image_data/lena_brightness.png", format="png")










import warnings

from ...utils import logging
from .image_processing_segformer import SegformerImageProcessor


_a						=   logging.get_logger(__name__)






class       __A					(					lowerCAmelCase				):

			'''simple docstring'''







			def __init__(					self ,						*__lowerCAmelCase ,						**__lowerCAmelCase							):



				'''simple docstring'''







				warnings.warn(
				    '''The class SegformerFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
				    ''' Please use SegformerImageProcessor instead.''' ,						__lowerCAmelCase ,						)
				super().__init__(*__lowerCAmelCase ,						**__lowerCAmelCase							)



