


'''simple docstring'''


from cva import destroyAllWindows, imread, imshow, waitKey


def 		_lowercase (SCREAMING_SNAKE_CASE							):




     '''simple docstring'''





     __A  ,__A	:       Optional[Any]      =							img.shape[0], img.shape[1]

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





'''simple docstring'''


def 		_lowercase (SCREAMING_SNAKE_CASE       ,					SCREAMING_SNAKE_CASE = " "							):




     '''simple docstring'''





     __A	:       List[str]      =							[]

     __A	:       Tuple      =							0
     for index, char in enumerate(SCREAMING_SNAKE_CASE							):
          if char == separator:
               split_words.append(string[last_index:index]							)
               __A	:       Union[str, Any]      =							index + 1
          elif index + 1 == len(SCREAMING_SNAKE_CASE							):
               split_words.append(string[last_index : index + 1]							)
     return split_words


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

      testmod()

