m_Capture=cvCreateFileCapture((LPSTR)(LPCTSTR)m_AllName);
for (int j=0;j<m_number;j++)
{
m_LoadImg=cvQueryFrame(m_Capture);
m_Frame=cvCloneImage(m_LoadImg);
}
Draw_Picture(m_Frame);
一旦m_number大於200+時候運行明顯變慢,m_number再大就會崩潰,怎麼解決啊?
cvCloneImage有內存洩露。
參見
http://www.360doc.com/content/11/0621/16/6408986_128481830.shtml