The following code snippet leads to a floating point
exception:
CvSize cv_size;
cv_size.width = 3;
cv_size.height = 700;
IplImage* image = cvCreateImage(cv_size, IPL_DEPTH_8U,
1);
pos_y = 350;
cvLine( image, cvPoint(0,pos_y), cvPoint(image->width-
1,pos_y), cvScalar(255,255,255), 2, 8 );
Moreover, for other small values of image->width the
line is not drawn in the middle (y...
2006-10-23 14:26:38 UTC in Open Computer Vision Library