This question has already been answered here :
For your requirement, you can do it as follows:
Mat img; img = imread(openFileDialog1->FileName, CV_LOAD_IMAGE_COLOR); System::Drawing::Graphics^ graphics = pictureBox1->CreateGraphics(); System::IntPtr ptr(img.ptr()); System::Drawing::Bitmap^ b = gcnew System::Drawing::Bitmap(img.cols,img.rows,img.step,System::Drawing::Imaging::PixelFormat::Format24bppRgb,ptr); System::Drawing::RectangleF rect(0,0,pictureBox1->Width,pictureBox1->Height); graphics->DrawImage(b,rect);
source share