CPylonImage imageMono8(CPylonImage::Create(PixelType_Mono8, 3, 5)); // width * height!!!!!!!
CPylMat mat(imageMono8.GetHeight(), imageMono8.GetWidth(), CV_8UC1);
cout打印Mat的内容只对二维有效
#include <pylon/PylonIncludes.h>
#include<opencv2/opencv.hpp>
#include <highgui.hpp><span style="display: none; width: 0px; height: 0px;" id="transmark"></span>
using namespace cv;
using namespace std;
using namespace Pylon;
#define P(x) cout<<#x<<": "<<x <<endl
void PrintImageProperties(IImage& image)
{
cout
<< "Buffer: " << image.GetBuffer()
<&