Question about initUndistortRectifyMap & remap function

Joe_rtx
Thu, 06 Apr 2023 09:28:42 +0000
C++

Hi,
I study opencv finsheye calibration document, and using initUndistortRectifyMap and remap function to get undistortion result. Then there ara some question:

1). The output of initUndistortRectifyMap map1 and map2 are 2 channels and 1 channel respectively. According to document about remap, I know the reason why map1 is 2 channels, but what is map2 meaning?
2). I use remap funcion, and try to let map2 be None, but get the wrong result, the pixel values in result are all (0, 1, 0). Why?

Thanks

3 posts - 2 participants