

from cva import destroyAllWindows, imread, imshow, waitKey
def      _lowerCAmelCase(	__A			):
  # getting number of pixels in the image
  UpperCAmelCase      ,	UpperCAmelCase					      =  img.shape[0], img.shape[1]

  # converting each pixel's color to its negative
  for i in range(_UpperCAmelCase			):
    for j in range(_UpperCAmelCase			):
      UpperCAmelCase					      =  [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()






def      _lowerCAmelCase(	__A			):
  assert column_title.isupper()
  UpperCAmelCase					      =  0
  UpperCAmelCase					      =  len(__A			) - 1
  UpperCAmelCase					      =  0

  while index >= 0:
    UpperCAmelCase					      =  (ord(column_title[index]			) - 64) * pow(26   ,       __A			)
    answer += value
    power += 1
    index -= 1

  return answer


if __name__ == "__main__":
      from doctest import testmod

      testmod()



