Visual c++ 在vc++中,在picturebox上绘制IplImage的速度较慢

Visual c++ 在vc++中,在picturebox上绘制IplImage的速度较慢,visual-c++,opencv,Visual C++,Opencv,我在picturebox上通过将其转换为位图来绘制iplimage 位图^imgBitmap=gcnew Bitmapipl->width,ipl->height,ipl->widthStep,System::Drawing::Imaging::PixelFormat::Format24bppRgb,System::IntPtripl->imageData pictureBox1->Image=imgBitmap 但我无法运行此方法以每秒显示50帧。有更快的方法吗?您是如何得出这是应用程序瓶颈的

我在picturebox上通过将其转换为位图来绘制iplimage

位图^imgBitmap=gcnew Bitmapipl->width,ipl->height,ipl->widthStep,System::Drawing::Imaging::PixelFormat::Format24bppRgb,System::IntPtripl->imageData

pictureBox1->Image=imgBitmap


但我无法运行此方法以每秒显示50帧。有更快的方法吗?

您是如何得出这是应用程序瓶颈的结论的?在cvShowWindow中显示iplimage比在picturebox上绘制框架更快。当我在10毫秒定时器的picturebox上绘制帧时,输出不平滑。它最慢的第一个想法是位图的构造器从IplImage复制像素,这当然会减慢速度,但它不执行复制操作。瓶颈可能是代码的其他部分。