How to let cv::Mat created at specified memory address?

OpenCV does not support C.

you can create a cv::Mat (RAII/stack) that does now own its memory but uses memory that you give it.