单项选择题

在OpenCV中,以下哪个函数用于进行图像的二值化操作?()

A.cv2.threshold()
B.cv2.bitwise_not()
C.cv2.blur()
D.cv2.Canny()