Scanbot SDK
Loading...
Searching...
No Matches
Macros | Functions
ScanbotSDKOpenCV.hpp File Reference

Utilities for bridging OpenCV cv::Mat's to the Scanbot SDK. More...

Go to the source code of this file.

Functions

scanbotsdk_image_t toImage (const cv::Mat &image)
 Wraps the data of the given cv::Mat in a scanbotsdk_image_t struct.
 

Detailed Description

Utilities for bridging OpenCV cv::Mat's to the Scanbot SDK.

Function Documentation

◆ toImage()

scanbotsdk_image_t toImage ( const cv::Mat &  image)
inline

Wraps the data of the given cv::Mat in a scanbotsdk_image_t struct.

The resulting struct does not own the data, so the cv::Mat must remain valid while the scanbotsdk_image_t is used.

Parameters
imageThe cv::Mat to wrap.
Returns
The scanbotsdk_image_t.