我想使用OpenCV对来自Bumblebee2相机的矫正图像进行一些处理。我使用FlyCapture2和Triclops从传感器获取图像并纠正它们。我想将TriclopsColorImage转换成cv :: Mat以与OpenCV一起使用。将图像从Triclops转换为opencv RGB图像。
从TriclopsColorImage对象,我可以得到以下几点:
int nrows; // The number of rows in the image
int ncols; //The number of columns in the image
int rowinc; //The row increment of the image
unsigned char * blue; //pixel data for the blue band of the image
unsigned char * red; //pixel data for the red band of the image
unsigned char * green; //pixel data for the green band of the image
我不知道如何将这种信息转换为CV ::垫的图像,这样我可以在它的工作。有人可以请指点我正确的方向吗?
谢谢!奇迹般有效。我刚刚提出了一个备用解决方案,我将其作为替代方案发布,以备有人想知道。 – Jompa234 2013-04-05 14:20:05