stereolabs / zed-opencv

ZED SDK interface sample for OpenCV
https://www.stereolabs.com/docs/opencv/
MIT License
137 stars 79 forks source link

Are the images undistorted and sznchronized? #20

Closed M1234Thomas closed 7 years ago

M1234Thomas commented 7 years ago

Hello, It is clear from the API documentation that the function zed->retrieveImage() returns the rectified images. Are these synchronized and un-distorted as well? I need to use synchronized, rectified un-distorted images for my work.

obraun-sl commented 7 years ago

Hi,

Rectified images means that they are undistorted as well. Regarding the synchronisation, the ZED streams side by side (Left + Right) image which are perfectly synchronized (through hardware clock) which means that any retrieve*() function will be synchronized after a grab call.

example :

if (zed->grab()==0)
{
   zed->retrieveImage(LEFT);
   zed->retrieveImage(RIGHT);  // --> (requires a copy) : synchronized to Left image
   zed->retrieveMeasure(DISPARITY/DEPTH/CONFIDENCE...);  // --> (requires a copy) : synchronized and mapped to Left image

}

Best, /OB/