Adds C methods that take a cv::Mat* (#21)

Some implementations of OpenCV use cv::Mat as their native pointer
rather then CvMat, so we need to support both in the C interface
This commit is contained in:
Thad House
2016-11-30 22:00:44 -08:00
committed by Peter Johnson
parent 1332ba3ad2
commit 3625f11e08
5 changed files with 19 additions and 0 deletions

View File

@@ -298,6 +298,11 @@ void CS_PutSourceFrame(CS_Source source, struct CvMat* image,
return cs::PutSourceFrame(source, mat, status);
}
void CS_PutSourceFrameCpp(CS_Source source, cv::Mat* image,
CS_Status* status) {
return cs::PutSourceFrame(source, *image, status);
}
void CS_NotifySourceError(CS_Source source, const char* msg,
CS_Status* status) {
return cs::NotifySourceError(source, msg, status);