1

OpenCV を使用して、Bumblebee2 カメラからの修正された画像を処理したいと考えています。FlyCapture2 と Triclops を使用して、センサーから画像を取得して修正しています。TriclopsColorImage を cv::Mat に変換して、OpenCV で使用したいと考えています。

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::Mat イメージに変換して作業できるようにする方法がわかりません。誰かが私を正しい方向に向けることができますか?

4

2 に答える 2