Add support to IMAQ conversion
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
#include <vector>
|
||||
#include <opencv2/opencv.hpp>
|
||||
|
||||
// Forward declaration for NI Vision IMAQ Image (avoids nivision.h dependency for consumers)
|
||||
#ifndef NI_IMAGE_TYPE_DEF
|
||||
#define NI_IMAGE_TYPE_DEF
|
||||
typedef struct Image_struct Image;
|
||||
#endif
|
||||
|
||||
#define MUTEX_TIMEOUT_MS 45000
|
||||
namespace fs = std::filesystem;
|
||||
namespace ANSCENTER
|
||||
@@ -161,4 +167,8 @@ extern "C" __declspec(dllexport) int ANSCV_ImagePatternMatchs_S(cv::Mat** image
|
||||
|
||||
extern "C" __declspec(dllexport) int ANSCV_ImagesToMP4_S(const char* imageFolder, const char* outputVideoPath, int targetDurationSec);
|
||||
|
||||
// IMAQ <-> cv::Mat conversion functions
|
||||
extern "C" __declspec(dllexport) int ANSCV_IMAQ2Image(Image* imaqImage, cv::Mat** imageOut);
|
||||
extern "C" __declspec(dllexport) int ANSCV_Image2IMAQ(cv::Mat** imageIn, Image* imaqImage);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user