Move cv::Rect_
This commit is contained in:
@@ -529,7 +529,7 @@ namespace cv{
|
||||
}
|
||||
return;
|
||||
}
|
||||
CvRect roi={0,0,0,0};
|
||||
CvRect roi;
|
||||
if (!CV_IS_MAT(patch))
|
||||
{
|
||||
roi = cvGetImageROI((IplImage*)patch);
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ void CV_PyrSegmentationTest::run( int /*start_from*/ )
|
||||
CvPoint* cp = _cp;
|
||||
CvPoint* cp2 = _cp2;
|
||||
CvConnectedComp *dst_comp[3];
|
||||
CvRect rect[3] = {{50,50,21,21}, {0,0,128,128}, {33,33,11,11}};
|
||||
CvRect rect[3] = {CvRect(50,50,21,21), CvRect(0,0,128,128), CvRect(33,33,11,11)};
|
||||
double a[3] = {441.0, 15822.0, 121.0};
|
||||
|
||||
/* ippiPoint cp3[] ={130,130, 150,130, 150,150, 130,150}; */
|
||||
|
||||
Reference in New Issue
Block a user