Lines Matching full:roi
87 CvRect roi, const CvArr* _mask )
103 if( roi.x == 0 && roi.y == 0 && roi.width == 0 && roi.height == 0 )
105 roi.width = image->cols;
106 roi.height = image->rows;
109 CV_ASSERT( (unsigned)roi.x < (unsigned)image->cols &&
110 (unsigned)roi.y < (unsigned)image->rows &&
111 roi.width >= 0 && roi.height >= 0 &&
112 roi.x + roi.width <= image->cols &&
113 roi.y + roi.height <= image->rows );
138 for( y = 0; y < roi.height; y++ )
140 const uchar* p = image->data.ptr + image->step*(y + roi.y) + roi.x*3;
141 const uchar* m = mask ? mask->data.ptr + mask->step*(y + roi.y) + roi.x : 0;
142 CvBGCodeBookElem** cb = model->cbmap + image->cols*(y + roi.y) + roi.x;
144 for( x = 0; x < roi.width; x++, p += 3, cb++ )
227 CvArr* _fgmask, CvRect roi )
244 if( roi.x == 0 && roi.y == 0 && roi.width == 0 && roi.height == 0 )
246 roi.width = image->cols;
247 roi.height = image->rows;
250 CV_ASSERT( (unsigned)roi.x < (unsigned)image->cols &&
251 (unsigned)roi.y < (unsigned)image->rows &&
252 roi.width >= 0 && roi.height >= 0 &&
253 roi.x + roi.width <= image->cols &&
254 roi.y + roi.height <= image->rows );
260 maskCount = roi.height*roi.width;
261 for( y = 0; y < roi.height; y++ )
263 const uchar* p = image->data.ptr + image->step*(y + roi.y) + roi.x*3;
264 uchar* m = mask->data.ptr + mask->step*(y + roi.y) + roi.x;
265 CvBGCodeBookElem** cb = model->cbmap + image->cols*(y + roi.y) + roi.x;
267 for( x = 0; x < roi.width; x++, p += 3, cb++ )
295 CvRect roi, const CvArr* _mask )
308 if( roi.x == 0 && roi.y == 0 && roi.width == 0 && roi.height == 0 )
310 roi.width = model->size.width;
311 roi.height = model->size.height;
314 CV_ASSERT( (unsigned)roi.x < (unsigned)mask->cols &&
315 (unsigned)roi.y < (unsigned)mask->rows &&
316 roi.width >= 0 && roi.height >= 0 &&
317 roi.x + roi.width <= mask->cols &&
318 roi.y + roi.height <= mask->rows );
324 for( y = 0; y < roi.height; y++ )
326 const uchar* m = mask ? mask->data.ptr + mask->step*(y + roi.y) + roi.x : 0;
327 CvBGCodeBookElem** cb = model->cbmap + model->size.width*(y + roi.y) + roi.x;
329 for( x = 0; x < roi.width; x++, cb++ )