





class      UpperCamelCase_						:




					def __init__(						self			,  lowerCAmelCase_			,  lowerCAmelCase_			,  lowerCAmelCase_					)						->							Any:
										_snake_case													=			name
										_snake_case													=			value
										_snake_case													=			weight




					def __repr__(						self					)						->							int:
										return F'''{self.__class__.__name__}({self.name}, {self.value}, {self.weight})'''




					def 		lowerCAmelCase     (						self					)						->							List[Any]:
										return self.value




					def 		lowerCAmelCase     (						self					)						->							Any:
										return self.name




					def 		lowerCAmelCase     (						self					)						->							Optional[Any]:
										return self.weight






					def 		lowerCAmelCase     (						self					)						->							List[str]:
										return self.value / self.weight





def   lowerCamelCase__       (       UpperCamelCase__     :    int    ,      UpperCamelCase__     :    Tuple    ,      UpperCamelCase__     :    List[str]  )     ->	Optional[Any]:



					'''simple docstring'''




					_snake_case													=			[]
					for i in range(len(__UpperCAmelCase  )  ):
										menu.append(Things(name[i]    ,      value[i]    ,      weight[i]  )  )
					return menu





def   lowerCamelCase__       (       UpperCamelCase__     :    str    ,      UpperCamelCase__     :    Tuple    ,      UpperCamelCase__     :    Optional[Any]  )     ->	Optional[int]:



					'''simple docstring'''




					_snake_case													=			sorted(__UpperCAmelCase    ,      key=__UpperCAmelCase    ,      reverse=__UpperCAmelCase  )
					_snake_case													=			[]
					_snake_case													=			0.0, 0.0
					for i in range(len(__UpperCAmelCase  )  ):
										if (total_cost + items_copy[i].get_weight()) <= max_cost:
															result.append(items_copy[i]  )
															total_cost += items_copy[i].get_weight()
															total_value += items_copy[i].get_value()
					return (result, total_value)





def   lowerCamelCase__       (       )     ->	str:



					'''simple docstring'''




					pass


if __name__ == "__main__":
					import doctest

					doctest.testmod()










from cva import destroyAllWindows, imread, imshow, waitKey





def   lowerCamelCase__       (       UpperCamelCase__     :    Dict  )     ->	Optional[Any]:



					'''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()



