Home | History | Annotate | Download | only in src

Lines Matching defs:rect

1464 cvGetSubRect( const CvArr* arr, CvMat* submat, CvRect rect )
1480 if( (rect.x|rect.y|rect.width|rect.height) < 0 )
1483 if( rect.x + rect.width > mat->cols ||
1484 rect.y + rect.height > mat->rows )
1496 submat->data.ptr = mat->data.ptr + (size_t)rect.y*mat->step +
1497 rect.x*CV_ELEM_SIZE(mat->type);
1498 submat->step = mat->step & (rect.height > 1 ? -1 : 0);
1499 submat->type = (mat->type & (rect.width < mat->cols ? ~CV_MAT_CONT_FLAG : -1)) |
1501 submat->rows = rect.height;
1502 submat->cols = rect.width;
3458 cvSetImageROI( IplImage* image, CvRect rect )
3467 if( rect.x > image->width || rect.y > image->height )
3470 if( rect.x + rect.width < 0 || rect.y + rect.height < 0 )
3473 if( rect.x < 0 )
3475 rect.width += rect.x;
3476 rect.x = 0;
3479 if( rect.y < 0 )
3481 rect.height += rect.y;
3482 rect.y = 0;
3485 if( rect.x + rect.width > image->width )
3486 rect.width = image->width - rect.x;
3488 if( rect.y + rect.height > image->height )
3489 rect.height = image->height - rect.y;
3493 image->roi->xOffset = rect.x;
3494 image->roi->yOffset = rect.y;
3495 image->roi->width = rect.width;
3496 image->roi->height = rect.height;
3500 CV_CALL( image->roi = icvCreateROI( 0, rect.x, rect.y, rect.width, rect.height ));
3537 CvRect rect = { 0, 0, 0, 0 };
3547 rect = cvRect( img->roi->xOffset, img->roi->yOffset,
3550 rect = cvRect( 0, 0, img->width, img->height );
3554 return rect;