'''simple docstring'''




from cva import destroyAllWindows, imread, imshow, waitKey






def __lowerCAmelCase					(				UpperCamelCase__							)      ->       Dict:
    # getting number of pixels in the image
    __lowerCamelCase      ,    __lowerCamelCase            =    img.shape[0], img.shape[1]

    # converting each pixel's color to its negative
    for i in range(UpperCamelCase__							):
        for j in range(UpperCamelCase__							):
            __lowerCamelCase            =    [2_55, 2_55, 2_55] - 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 __lowerCAmelCase					(				UpperCamelCase__							,    UpperCamelCase__							)      ->       float:
    if digit_amount > 0:
        return round(number - int(UpperCamelCase__							)							,    UpperCamelCase__							)
    return number - int(UpperCamelCase__							)


if __name__ == "__main__":
  print(decimal_isolate(1.53, 0))
  print(decimal_isolate(35.345, 1))
  print(decimal_isolate(35.345, 2))
  print(decimal_isolate(35.345, 3))
  print(decimal_isolate(-14.789, 3))
  print(decimal_isolate(0, 2))
  print(decimal_isolate(-14.123, 1))
  print(decimal_isolate(-14.123, 2))
  print(decimal_isolate(-14.123, 3))
