Lines Matching defs:roi

1211             if( img->roi )
1213 *roi_size = cvSize( img->roi->width, img->roi->height );
1381 size = !img->roi ? img->height : img->roi->height;
1384 size = !img->roi ? img->width : img->roi->width;
1440 if( img->roi )
1442 size.width = img->roi->width;
1443 size.height = img->roi->height;
1937 int width = !img->roi ? img->width : img->roi->width;
2042 if( img->roi )
2044 width = img->roi->width;
2045 height = img->roi->height;
2047 ptr += img->roi->yOffset*img->widthStep +
2048 img->roi->xOffset*pix_size;
2052 int coi = img->roi->coi;
2804 if( img->roi )
2810 if( img->roi->coi == 0 )
2814 CV_CALL( cvInitMatHeader( mat, img->roi->height,
2815 img->roi->width, type,
2816 img->imageData + (img->roi->coi-1)*img->imageSize +
2817 img->roi->yOffset*img->widthStep +
2818 img->roi->xOffset*CV_ELEM_SIZE(type),
2824 coi = img->roi->coi;
2830 CV_CALL( cvInitMatHeader( mat, img->roi->height, img->roi->width,
2832 img->roi->yOffset*img->widthStep +
2833 img->roi->xOffset*CV_ELEM_SIZE(type),
3232 IplROI *roi = 0;
3240 CV_CALL( roi = (IplROI*)cvAlloc( sizeof(*roi)));
3242 roi->coi = coi;
3243 roi->xOffset = xOffset;
3244 roi->yOffset = yOffset;
3245 roi->width = width;
3246 roi->height = height;
3250 roi = CvIPL.createROI( coi, xOffset, yOffset, width, height );
3255 return roi;
3364 CV_ERROR( CV_BadROISize, "Bad input roi" );
3381 if( image->roi )
3383 image->roi->coi = 0;
3384 image->roi->xOffset = image->roi->yOffset = 0;
3385 image->roi->width = size.width;
3386 image->roi->height = size.height;
3422 cvFree( &img->roi );
3491 if( image->roi )
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 ));
3517 if( image->roi )
3521 cvFree( &image->roi );
3526 image->roi = 0;
3546 if( img->roi )
3547 rect = cvRect( img->roi->xOffset, img->roi->yOffset,
3548 img->roi->width, img->roi->height );
3571 if( image->roi || coi != 0 )
3573 if( image->roi )
3575 image->roi->coi = coi;
3579 CV_CALL( image->roi = icvCreateROI( coi, 0, 0, image->width, image->height ));
3598 coi = image->roi ? image->roi->coi : 0;
3623 dst->roi = 0;
3625 if( src->roi )
3627 dst->roi = icvCreateROI( src->roi->coi, src->roi->xOffset,
3628 src->roi->yOffset, src->roi->width, src->roi->height );