



from cva import destroyAllWindows, imread, imshow, waitKey


def A						(       __UpperCamelCase					)						->      Optional[Any]:
			# getting number of pixels in the image
			A__     , A__       =    img.shape[0], img.shape[1]

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

			return img


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

							# convert to its negative
							SCREAMING_SNAKE_CASE__       =      convert_to_negative(img)

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









def A						(       __UpperCamelCase					)						->      bool:
			return number & 1 == 0


if __name__ == "__main__":
							import doctest

							doctest.testmod()




