


'''simple docstring'''




from cva import destroyAllWindows, imread, imshow, waitKey

def 			__UpperCamelCase    (    _A    :				Tuple				)    ->      List[Any]:




	"""simple docstring"""





	lowerCAmelCase					:    int      							= img.shape[0], img.shape[1]

	# converting each pixel's color to its negative
	for i in range(_A				):
		for j in range(_A				):
			lowerCAmelCase					:    str      							= [2_55, 2_55, 2_55] - img[i][j]

	return img


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

	# convert to its negative
	_lowerCAmelCase  :		List[str]		     =	convert_to_negative(img)

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




'''simple docstring'''




def 			__UpperCamelCase    (    _A    :				int				)    ->      bool:




	"""simple docstring"""





	return number & 1 == 0


if __name__ == "__main__":
				import doctest

				doctest.testmod()
