


'''simple docstring'''

from cva import destroyAllWindows, imread, imshow, waitKey





def __snake_case					(      UpperCAmelCase_						:						Any		):
 # 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_      =  [255, 255, 255] - img[i][j]

 return img


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

     # convert to its negative
     a_  :				Any						= convert_to_negative(img)

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







'''simple docstring'''

from __future__ import annotations





def __snake_case					(      UpperCAmelCase_						:						int		):
 lowerCamelCase_      =  2
 lowerCamelCase_      =  []
 while i * i <= n:
  if n % i:
   i += 1
  else:
   n //= i
   factors.append(UpperCAmelCase_		)
 if n > 1:
  factors.append(UpperCAmelCase_		)
 return factors


if __name__ == "__main__":
     import doctest

     doctest.testmod()



