Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have not tried to put a grayscale image directly into the picturebox but rather converted the gray image to an RGB image and then put that. something like:

cvtColor(GrayImage, ColorImage, CV_GRAY2RGB, 3);
 System::Drawing::Bitmap^ BitmapToDisplay=gcnew System::Drawing::Bitmap(ColorImage.cols, ColorImage.rows, (int)ColorImage.step, System::Drawing::Imaging::PixelFormat::Format24bppRgb, ColorImage.ptr());

guy