Convert an sl::Mat to a cv::Mat 'slMat2cvMat'

I’m using zed C++ API on Jetson TX2, but I get an error when using the function ‘slMat2cvMat’, so is there a C++ function called ‘slMat2cvMat’ provided by the SDK?

Hi @Lu-Sijie
Welcome to the Stereolabs community.

The function slMat2cvMat is not part of the ZED SDK, but it’s defined in our examples:

Thank you for the reply.