Lines Matching refs:image
93 CvMat stub, *image = cvGetMat( _image, &stub );
100 CV_ASSERT( model && CV_MAT_TYPE(image->type) == CV_8UC3 &&
101 (!mask || CV_IS_MASK_ARR(mask) && CV_ARE_SIZES_EQ(image, mask)) );
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 &&
112 roi.x + roi.width <= image->cols &&
113 roi.y + roi.height <= image->rows );
115 if( image->cols != model->size.width || image->rows != model->size.height )
120 int bufSz = image->cols*image->rows*sizeof(model->cbmap[0]);
123 model->size = cvSize(image->cols, image->rows);
140 const uchar* p = image->data.ptr + image->step*(y + roi.y) + roi.x*3;
142 CvBGCodeBookElem** cb = model->cbmap + image->cols*(y + roi.y) + roi.x;
235 CvMat stub, *image = cvGetMat( _image, &stub );
240 CV_ASSERT( model && CV_MAT_TYPE(image->type) == CV_8UC3 &&
241 image->cols == model->size.width && image->rows == model->size.height &&
242 CV_IS_MASK_ARR(mask) && CV_ARE_SIZES_EQ(image, mask) );
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 &&
253 roi.x + roi.width <= image->cols &&
254 roi.y + roi.height <= image->rows );
263 const uchar* p = image->data.ptr + image->step*(y + roi.y) + roi.x*3;
265 CvBGCodeBookElem** cb = model->cbmap + image->cols*(y + roi.y) + roi.x;