

'''simple docstring'''





from cva import destroyAllWindows, imread, imshow, waitKey






def 				_lowerCAmelCase			(   __magic_name__						:     Any						)				->  Optional[int]:
						# getting number of pixels in the image
						lowercase		,	lowercase :							List[Any]    		=img.shape[0], img.shape[1]

						# converting each pixel's color to its negative
						for i in range(__magic_name__						):
												for j in range(__magic_name__						):
																		lowercase :							str    		=[255, 255, 255] - img[i][j]

						return img


if __name__ == "__main__":
							# read original image
							UpperCamelCase_    						=       imread("""image_data/lena.jpg""", 1)

							# convert to its negative
							UpperCamelCase_    						=       convert_to_negative(img)

							# show result image
							imshow("""negative of original image""", img)
							waitKey(0)
							destroyAllWindows()







import warnings

from ...utils import logging
from .image_processing_beit import BeitImageProcessor


__lowerCAmelCase     :	int       			=  logging.get_logger(__name__)




class 			UpperCAmelCase_     (					_A	):


  '''simple docstring'''







  def __init__(					self     :					int     ,				*UpperCamelCase__     :					Optional[Any]     ,				**UpperCamelCase__     :					Optional[Any]       )     ->      None:







    """simple docstring"""






    warnings.warn(
        """The class BeitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
        """ use BeitImageProcessor instead."""     ,				UpperCamelCase__     ,				)
    super().__init__(*UpperCamelCase__     ,				**UpperCamelCase__       )

