





'''simple docstring'''

from ..utils import DummyObject, requires_backends
class     __lowerCAmelCase					(   metaclass=UpperCamelCase__			):






       """simple docstring"""
       _snake_case     :					Optional[int]						    =   ["""speech"""]





       def __init__(							self       :		Tuple	,			*lowerCAmelCase__       :		Optional[Any]	,			**lowerCAmelCase__       :		List[str]					)   ->					str:

            '''simple docstring'''




            requires_backends(self	,			['''speech''']					)

class     __lowerCAmelCase					(   metaclass=UpperCamelCase__			):






       """simple docstring"""
       _snake_case     :					Tuple						    =   ["""speech"""]





       def __init__(							self       :		List[str]	,			*lowerCAmelCase__       :		int	,			**lowerCAmelCase__       :		Optional[int]					)   ->					List[Any]:

            '''simple docstring'''




            requires_backends(self	,			['''speech''']					)










'''simple docstring'''

from cva import destroyAllWindows, imread, imshow, waitKey







def  a__    (    lowercase :					str				)		->		Optional[int]:





     """simple docstring"""

     _UpperCamelCase   ,    _UpperCamelCase       =	img.shape[0], img.shape[1]

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

     return img


if __name__ == "__main__":
   # read original image
   lowercase__						:      Optional[int]	=    imread('image_data/lena.jpg', 1)

   # convert to its negative
   lowercase__						:      Union[str, Any]	=    convert_to_negative(img)

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



