mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
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:
committed by
Peter Johnson
parent
1332ba3ad2
commit
3625f11e08
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user