Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Camera vendors provide their own C++ API to grab from their cameras in the form of DLL or static LIB. Is a common way for API to provide a memory buffer where the image (with all its layers) is stored in the memory.

If layers in memory are organized pixel by pixels this is fine because is same how to OpenCV manages layers for Mat. If layers are organized layer by layer you need to do of some memory reconstruction. See How the image matrix is stored in the memory? for more info.

When you have this pointer with right memory organization you can to make a cv::Mat header for user-allocated data see and process it in-place using OpenCV functions. See the doc for more info.

You have to create your OpenCV project that use and Link to vendor's API