Move cv::Rect_

This commit is contained in:
Andrey Kamaev
2013-03-26 20:43:27 +04:00
parent addf0309ec
commit 62adc01980
13 changed files with 72 additions and 73 deletions

View File

@@ -529,7 +529,7 @@ namespace cv{
}
return;
}
CvRect roi={0,0,0,0};
CvRect roi;
if (!CV_IS_MAT(patch))
{
roi = cvGetImageROI((IplImage*)patch);

View File

@@ -292,8 +292,8 @@ icvSnake8uC1R( unsigned char *src,
int leftshift = x ? 1 : 0;
int bottomshift = MIN( 1, roi.height - (y + 1)*WTILE_SIZE );
int rightshift = MIN( 1, roi.width - (x + 1)*WTILE_SIZE );
CvRect g_roi = { x*WTILE_SIZE - leftshift, y*WTILE_SIZE - upshift,
leftshift + WTILE_SIZE + rightshift, upshift + WTILE_SIZE + bottomshift };
CvRect g_roi(x*WTILE_SIZE - leftshift, y*WTILE_SIZE - upshift,
leftshift + WTILE_SIZE + rightshift, upshift + WTILE_SIZE + bottomshift);
CvMat _src1;
cvGetSubArr( &_src, &_src1, g_roi );