1/07/2014

(OpenCV, Mat class) Image buffer(point) copy to Mat

when you want to copy "unsigned char * pData" image buffer to Mat class in OpenCV.

This source is simple example code.

Mat InImg(height, width, CV_8UC1);
memcpy(InImg.data, pData, sizeof(unsigned char)*width*height);


1 comment:

  1. Thanks for sharing Information to us. If someone wants to know about,I think this is the right place for you!

    mobile app development in coimbatore
    mobile app development company in atlanta
    chatbot development company

    ReplyDelete