单项选择题

如何将Mat对象中的图像数据转换为numpy数组?()

A.np.array(mat)
B.cv2.toArray(mat)
C.mat.toArray()
D.cv2.numpy(mat)