mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +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
@@ -294,4 +294,10 @@ std::vector<std::string> GetNetworkInterfaces();
|
||||
|
||||
} // namespace cs
|
||||
|
||||
// C functions taking a cv::Mat* for specific interop implementations
|
||||
extern "C" {
|
||||
uint64_t CS_GrabSinkFrameCpp(CS_Sink sink, cv::Mat* image, CS_Status* status);
|
||||
void CS_PutSourceFrameCpp(CS_Source source, cv::Mat* image, CS_Status* status);
|
||||
}
|
||||
|
||||
#endif // CSCORE_CPP_H_
|
||||
|
||||
Reference in New Issue
Block a user