




from cva import destroyAllWindows, imread, imshow, waitKey



def      __lowerCAmelCase			(					UpperCamelCase      )     ->	Dict:
  # getting number of pixels in the image
  lowerCAmelCase__		       =     img.shape[0], img.shape[1]

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

  return img


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

     # convert to its negative
     lowerCAmelCase_					    = convert_to_negative(img)

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







from abc import ABC, abstractmethod
from argparse import ArgumentParser






class  _lowerCAmelCase     (  _lowercase	):

      @staticmethod
      @abstractmethod
      def 	__magic_name__(   __UpperCAmelCase		):
        raise NotImplementedError()







      @abstractmethod
      def 	__magic_name__(   self		):
        raise NotImplementedError()

