one of arguments' values is out of range (index is out of range) in function cvPtr2D,c:\\

我当时是有这样的代码:
CvScalar color=CV_RGB(0,255,0);
for (int a=m_bottom; a<m_top; a++)
{
cvSet2D(img, a, m_left,color) ;
cvSet2D(img, a, m_right,color) ;
}
for ( a=m_left; a<m_right; a++)
{
cvSet2D(img, m_top,a, color) ;
cvSet2D(img, m_bottom,a, color) ;
}
去掉后,还会报另一个错,因为我另一个程序里有一个continue放错地方了,调整后就没错误了

你可能感兴趣的:(one of arguments' values is out of range (index is out of range) in function cvPtr2D,c:\\)