Traceback (most recent call last): File "F:/4th Year/project/CFP/Reconstruction/disparity.py", line 204, in points_3D = cv2.reprojectImageTo3D(disparity_map, Q2) cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-71670poj\opencv\modules\calib3d\src\calibration.cpp:2990: error: (-215:Assertion failed) stype == CV_8UC1 || stype == CV_16SC1 || stype == CV_32SC1 || stype == CV_32FC1 in function 'cv::reprojectImageTo3D'
disparity_map = wls_filter.filter(displ, rimg1, None, dispr) / 16.0
Q = np.float32([[1,0,0,-w/2.0],
[0,-1,0,h/2.0],
[0,0,0,-focal_length],
[0,0,1,0]])
points_3D = cv2.reprojectImageTo3D(disparity_map, Q)
I'm trying to create 3D points by using a disparity map please let me know a way to fix this error, as my understanding this is about some data type/format issue.