




import numpy as np
from cva import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey

from digital_image_processing.filters.convolve import img_convolve




def      __magic_name__							(					A						:   int  ):






			'''simple docstring'''







			a       =     np.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, 1]]  )
			a       =     np.array([[1, 2, 1], [0, 0, 0], [-1, -2, -1]]  )

			a       =     np.abs(img_convolve(A,    A  )  )
			a       =     np.abs(img_convolve(A,    A  )  )
			# modify the pix within [0, 255]
			a       =     dst_x * 255 / np.max(A  )
			a       =     dst_y * 255 / np.max(A  )

			a       =     np.sqrt((np.square(A  )) + (np.square(A  ))  )
			a       =     dst_xy * 255 / np.max(A  )
			a       =     dst_xy.astype(np.uinta  )

			a       =     np.arctana(A,    A  )
			return dst, theta


if __name__ == "__main__":
		# read original image
		__lowerCAmelCase						:							Dict			     =						imread('../image_data/lena.jpg')
		# turn image in gray scale value
		__lowerCAmelCase						:							List[Any]			     =						cvtColor(img, COLOR_BGR2GRAY)

		__lowerCAmelCase						:							List[Any]			     =						sobel_filter(gray)

		# show result images
		imshow('sobel filter', sobel_grad)
		imshow('sobel theta', sobel_theta)
		waitKey(0)














"""simple docstring"""





from math import gcd







def 	lowerCAmelCase_(			SCREAMING_SNAKE_CASE = 1_20_00       )       ->						int:
    """simple docstring"""

    UpperCamelCase__								=     0
    for d in range(max_d + 1       ):
        for n in range(d // 3 + 1			,						(d + 1) // 2       ):
            if gcd(SCREAMING_SNAKE_CASE			,						SCREAMING_SNAKE_CASE       ) == 1:
                fractions_number += 1
    return fractions_number


if __name__ == "__main__":
  print(F"""{solution() = }""")




