





import re





def 						lowerCamelCase__     (     UpperCamelCase__			:       str						)			-> list:



					'''simple docstring'''




					return [char.split() for char in re.split(R'[^ a-z A-Z 0-9 \s]'       ,    str_						)]





def 						lowerCamelCase__     (     UpperCamelCase__			:       str						)			-> str:



					'''simple docstring'''




					_snake_case									=				split_input(str_						)
					return "".join(
					    [''.join([char.capitalize() for char in sub_str]						) for sub_str in string_split]						)





def 						lowerCamelCase__     (     UpperCamelCase__			:       str       ,    UpperCamelCase__			:       bool       ,    UpperCamelCase__			:       str						)			-> str:



					'''simple docstring'''




					try:
										_snake_case									=				split_input(UpperCamelCase__						)
										if upper:
															_snake_case									=				''.join(
															    [
															        separator.join([char.upper() for char in sub_str]						)
															        for sub_str in string_split
															    ]						)
										else:
															_snake_case									=				''.join(
															    [
															        separator.join([char.lower() for char in sub_str]						)
															        for sub_str in string_split
															    ]						)
										return res_str
					except IndexError:
										return "not valid string"





def 						lowerCamelCase__     (     UpperCamelCase__			:       str						)			-> str:



					'''simple docstring'''




					return to_simple_case(UpperCamelCase__						)





def 						lowerCamelCase__     (     UpperCamelCase__			:       str						)			-> str:



					'''simple docstring'''




					try:
										_snake_case									=				to_simple_case(UpperCamelCase__						)
										return res_str[0].lower() + res_str[1:]
					except IndexError:
										return "not valid string"





def 						lowerCamelCase__     (     UpperCamelCase__			:       str       ,    UpperCamelCase__			:       bool						)			-> str:



					'''simple docstring'''




					return to_complex_case(UpperCamelCase__       ,    UpperCamelCase__       ,    '_'						)





def 						lowerCamelCase__     (     UpperCamelCase__			:       str       ,    UpperCamelCase__			:       bool						)			-> str:



					'''simple docstring'''




					return to_complex_case(UpperCamelCase__       ,    UpperCamelCase__       ,    '-'						)


if __name__ == "__main__":
					__import__("""doctest""").testmod()










from cva import destroyAllWindows, imread, imshow, waitKey





def 						lowerCamelCase__     (     UpperCamelCase__			:       Optional[int]						)			-> Optional[int]:



					'''simple docstring'''




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

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

					return img


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

					# convert to its negative
					UpperCAmelCase_      							=     convert_to_negative(img)

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



