Home
last modified time | relevance | path

Searched refs:roi (Results 1 – 25 of 30) sorted by relevance

12

/external/opencv/cvaux/src/
Dcvbgfg_codebook.cpp87 CvRect roi, const CvArr* _mask ) in cvBGCodeBookUpdate() argument
103 if( roi.x == 0 && roi.y == 0 && roi.width == 0 && roi.height == 0 ) in cvBGCodeBookUpdate()
105 roi.width = image->cols; in cvBGCodeBookUpdate()
106 roi.height = image->rows; in cvBGCodeBookUpdate()
109 CV_ASSERT( (unsigned)roi.x < (unsigned)image->cols && in cvBGCodeBookUpdate()
110 (unsigned)roi.y < (unsigned)image->rows && in cvBGCodeBookUpdate()
111 roi.width >= 0 && roi.height >= 0 && in cvBGCodeBookUpdate()
112 roi.x + roi.width <= image->cols && in cvBGCodeBookUpdate()
113 roi.y + roi.height <= image->rows ); in cvBGCodeBookUpdate()
138 for( y = 0; y < roi.height; y++ ) in cvBGCodeBookUpdate()
[all …]
Dcvhmmobs.cpp117 icvImgToObs_DCT_8u32f_C1R( uchar * img, int imgStep, CvSize roi, in icvImgToObs_DCT_8u32f_C1R() argument
142 if( roi.width <= 0 || roi.height <= 0 ) in icvImgToObs_DCT_8u32f_C1R()
155 Nx = (roi.width - dctSize.width + delta.width) / delta.width; in icvImgToObs_DCT_8u32f_C1R()
156 Ny = (roi.height - dctSize.height + delta.height) / delta.height; in icvImgToObs_DCT_8u32f_C1R()
161 buffer = (work_t *)cvAlloc( roi.width * obsSize.height * sizeof( buffer[0] )); in icvImgToObs_DCT_8u32f_C1R()
168 buf_limit = buffer + obsSize.height * roi.width; in icvImgToObs_DCT_8u32f_C1R()
176 for( x = 0; x < roi.width; x++ ) in icvImgToObs_DCT_8u32f_C1R()
202 if( (buf += roi.width) >= buf_limit ) in icvImgToObs_DCT_8u32f_C1R()
214 if( (buf += roi.width) >= buf_limit ) in icvImgToObs_DCT_8u32f_C1R()
231 if( (buf += roi.width) >= buf_limit ) in icvImgToObs_DCT_8u32f_C1R()
[all …]
Dcvcreatehandmask.cpp54 CvSize size, CvRect * roi ) in icvCreateHandMask8uC1R() argument
93 roi->x = j_min; in icvCreateHandMask8uC1R()
94 roi->y = i_min; in icvCreateHandMask8uC1R()
95 roi->width = j_max - j_min + 1; in icvCreateHandMask8uC1R()
96 roi->height = i_max - i_min + 1; in icvCreateHandMask8uC1R()
116 cvCreateHandMask( CvSeq * numbers, IplImage * img_mask, CvRect * roi ) in cvCreateHandMask() argument
135 img_mask_step, img_mask_size, roi )); in cvCreateHandMask()
Dcv3dtracker.cpp110 if( samples[c]->roi && in cv3dTrackerCalibrateCameras()
111 ((samples[c]->roi->xOffset | samples[c]->roi->yOffset in cv3dTrackerCalibrateCameras()
112 | samples[c]->roi->width | samples[c]->roi->height) < 0 || in cv3dTrackerCalibrateCameras()
113 samples[c]->roi->xOffset + samples[c]->roi->width > samples[c]->width || in cv3dTrackerCalibrateCameras()
114 samples[c]->roi->yOffset + samples[c]->roi->height > samples[c]->height || in cv3dTrackerCalibrateCameras()
115 (unsigned) (samples[c]->roi->coi) > (unsigned) (samples[c]->nChannels))) in cv3dTrackerCalibrateCameras()
Dcvfacedetection.cpp380 if ( ( !FaceImage->roi ) ) in PostBoostingFindCandidats()
383 …lpFaceTemplate1 = new BoostingFaceTemplate(3,cvRect(FaceImage->roi->xOffset,FaceImage->roi->yOffse… in PostBoostingFindCandidats()
384 … FaceImage->roi->width,FaceImage->roi->height)); in PostBoostingFindCandidats()
Dcvvecfacetracking.cpp206 inline int Init(const CvRect& roi, const CvTrackingRect& prev, CvMemStorage* mstg = NULL) in Init() argument
208 m_rROI = roi; in Init()
268 CvRect roi = m_rROI; in FindContours() local
269 Extend(roi, 1); in FindContours()
270 cvSetImageROI(img, roi); in FindContours()
271 cvSetImageROI(thresh, roi); in FindContours()
317 Move(cr.r, roi.x, roi.y); in FindContours()
327 Move(cr.r, roi.x, roi.y); in FindContours()
/external/libvpx/libvpx/examples/
Dset_maps.c67 vpx_roi_map_t roi; in set_roi_map() local
68 memset(&roi, 0, sizeof(roi)); in set_roi_map()
70 roi.rows = (cfg->g_h + 15) / 16; in set_roi_map()
71 roi.cols = (cfg->g_w + 15) / 16; in set_roi_map()
73 roi.delta_q[0] = 0; in set_roi_map()
74 roi.delta_q[1] = -2; in set_roi_map()
75 roi.delta_q[2] = -4; in set_roi_map()
76 roi.delta_q[3] = -6; in set_roi_map()
78 roi.delta_lf[0] = 0; in set_roi_map()
79 roi.delta_lf[1] = 1; in set_roi_map()
[all …]
/external/opencv/cv/src/
Dcvthresh.cpp46 CvSize roi, uchar thresh, uchar maxval, int type ) in icvThresh_8u_C1R() argument
87 for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) in icvThresh_8u_C1R()
89 for( j = 0; j <= roi.width - 4; j += 4 ) in icvThresh_8u_C1R()
104 for( ; j < roi.width; j++ ) in icvThresh_8u_C1R()
114 CvSize roi, float thresh, float maxval, int type ) in icvThresh_32f_C1R() argument
131 for( i = 0; i < roi.height; i++, isrc += src_step, idst += dst_step ) in icvThresh_32f_C1R()
133 for( j = 0; j < roi.width; j++ ) in icvThresh_32f_C1R()
142 for( i = 0; i < roi.height; i++, isrc += src_step, idst += dst_step ) in icvThresh_32f_C1R()
144 for( j = 0; j < roi.width; j++ ) in icvThresh_32f_C1R()
153 for( i = 0; i < roi.height; i++, src += src_step, dst += dst_step ) in icvThresh_32f_C1R()
[all …]
Dcvpyrsegmentation.cpp183 CvSize roi, CvFilter filter, in icvPyrSegmentation8uC1R() argument
220 if( roi.width <= 0 || roi.height <= 0 || src_step < roi.width || dst_step < roi.width ) in icvPyrSegmentation8uC1R()
229 if( ((roi.width | roi.height) & ((1 << level) - 1)) != 0 ) in icvPyrSegmentation8uC1R()
243 buffer_size = roi.width * roi.height * (sizeof( float ) + sizeof( _CvPyramidBase )); in icvPyrSegmentation8uC1R()
246 buffer_size += ((roi.width >> l) + 1) * ((roi.height >> l) + 1) * sizeof(_CvPyramid); in icvPyrSegmentation8uC1R()
259 step = roi.width * sizeof( float ); in icvPyrSegmentation8uC1R()
264 cvInitMatHeader( &_src, roi.height, roi.width, CV_8UC1, src_image, src_step ); in icvPyrSegmentation8uC1R()
265 cvInitMatHeader( &_pyramida, roi.height, roi.width, CV_32FC1, pyramida, step ); in icvPyrSegmentation8uC1R()
269 p_base = (_CvPyramidBase *) (buffer + step * roi.height); in icvPyrSegmentation8uC1R()
273 for( i = 0; i < roi.height; i++ ) in icvPyrSegmentation8uC1R()
[all …]
Dcvsnakes.cpp73 CvSize roi, in icvSnake8uC1R() argument
102 int map_width = ((roi.width - 1) >> 3) + 1; in icvSnake8uC1R()
103 int map_height = ((roi.height - 1) >> 3) + 1; in icvSnake8uC1R()
110 CvMat _src = cvMat( roi.height, roi.width, CV_8UC1, src ); in icvSnake8uC1R()
121 if( (roi.height <= 0) || (roi.width <= 0) ) in icvSnake8uC1R()
123 if( srcStep < roi.width ) in icvSnake8uC1R()
149 gradient = (float *) cvAlloc( roi.height * roi.width * sizeof( float )); in icvSnake8uC1R()
205 int right = MIN( roi.width - 1 - pt[i].x, win.width >> 1 ); in icvSnake8uC1R()
207 int bottom = MIN( roi.height - 1 - pt[i].y, win.height >> 1 ); in icvSnake8uC1R()
301 int bottomshift = MIN( 1, roi.height - (y + 1)*WTILE_SIZE ); in icvSnake8uC1R()
[all …]
D_cvipp.h296 int dststep, CvSize roi, CvSize esize, CvPoint anchor, void* buffer )) \
304 void* dst, int dststep, CvSize roi, int bordertype, void* morphstate ))
357 CvSize roi, CvSize ksize, CvPoint anchor ))
367 CvSize roi, CvSize ksize, CvPoint anchor ))
385 CV_PLUGINS1(CV_PLUGIN_IPPCV), ( CvSize roi, int masksize, int* buffersize )) \
388 ( const void* src, int srcstep, void* dst, int dststep, CvSize roi, int masksize, \
408 CV_PLUGINS1(CV_PLUGIN_IPPCV), ( CvSize roi, int* buffersize )) \
411 ( const void* src, int srcstep, void* dst, int dststep, CvSize roi, \
426 CV_PLUGINS1(CV_PLUGIN_IPPCV), ( CvSize roi, int masksize, int* buffersize )) \
429 ( const void* src, int srcstep, void* dst, int dststep, CvSize roi, int masksize, \
[all …]
Dcvfloodfill.cpp95 icvFloodFill_8u_CnIR( uchar* pImage, int step, CvSize roi, CvPoint seed, in icvFloodFill_8u_CnIR() argument
117 while( ++R < roi.width && img[R] == val0[0] ) in icvFloodFill_8u_CnIR()
134 while( ++R < roi.width && ICV_EQ_C3( img + R*3, val0 )) in icvFloodFill_8u_CnIR()
171 if( (unsigned)(YC + dir) >= (unsigned)roi.height ) in icvFloodFill_8u_CnIR()
177 if( (unsigned)i < (unsigned)roi.width && img[i] == val0[0] ) in icvFloodFill_8u_CnIR()
184 while( ++i < roi.width && img[i] == val0[0] ) in icvFloodFill_8u_CnIR()
193 if( (unsigned)i < (unsigned)roi.width && ICV_EQ_C3( img + i*3, val0 )) in icvFloodFill_8u_CnIR()
200 while( ++i < roi.width && ICV_EQ_C3( img + i*3, val0 )) in icvFloodFill_8u_CnIR()
227 icvFloodFill_32f_CnIR( int* pImage, int step, CvSize roi, CvPoint seed, in icvFloodFill_32f_CnIR() argument
249 while( ++R < roi.width && img[R] == val0[0] ) in icvFloodFill_32f_CnIR()
[all …]
Dcvcalccontrasthistogram.cpp335 CvSize roi = { 0, 0 };
354 cvGetImageRawData( img[i], &data[i], &step, &roi );
369 IPPI_CALL( icvCalcContrastHist8uC1R( data, step, roi, hist, dont_clear ));
374 mask_step, roi, hist, dont_clear ));
D_cvimgproc.h56 ( const void* src, int srcstep, void* dst, int dststep, CvSize roi, int aperture );
59 ( const void* src, int srcstep, void* dst, int dststep, CvSize roi );
Dcvcorner.cpp625 CvRect roi = cvRect(0,y,size.width,delta); in cvPreCornerDetect() local
631 dx_filter.process(src,Dx,roi,origin,stage); in cvPreCornerDetect()
632 dy_filter.process(src,Dy,roi,origin,stage); in cvPreCornerDetect()
633 d2x_filter.process(src,D2x,roi,origin,stage); in cvPreCornerDetect()
634 d2y_filter.process(src,D2y,roi,origin,stage); in cvPreCornerDetect()
635 stripe_size.height = dxy_filter.process(src,Dxy,roi,origin,stage); in cvPreCornerDetect()
Dcvhistogram.cpp2151 IplROI roi; in cvCalcArrBackProjectPatch() local
2179 img[i]->roi = &roi; in cvCalcArrBackProjectPatch()
2193 roi.coi = 0; in cvCalcArrBackProjectPatch()
2194 roi.width = patch_size.width; in cvCalcArrBackProjectPatch()
2195 roi.height = patch_size.height; in cvCalcArrBackProjectPatch()
2203 roi.xOffset = x; in cvCalcArrBackProjectPatch()
2204 roi.yOffset = y; in cvCalcArrBackProjectPatch()
/external/opencv/cxcore/include/
Dcxcore.hpp136 !image->roi ? cvSize(image->width,image->height) : in roi_size()
137 cvSize(image->roi->width, image->roi->height); in roi_size()
140 CvRect roi() const in roi() function in CvImage
143 !image->roi ? cvRect(0,0,image->width,image->height) : in roi()
144 cvRect(image->roi->xOffset,image->roi->yOffset, in roi()
145 image->roi->width,image->roi->height); in roi()
148 int coi() const { return !image || !image->roi ? 0 : image->roi->coi; } in coi()
150 void set_roi(CvRect roi) { cvSetImageROI(image,roi); } in set_roi() argument
166 1 : image->roi ? in roi_row()
167 y<image->roi->height : y<image->height); in roi_row()
[all …]
Dcxtypes.h383 struct _IplROI *roi; /* Image ROI. If NULL, the whole image is selected. */ member
863 IplROI roi; in cvRectToROI() local
864 roi.xOffset = rect.x; in cvRectToROI()
865 roi.yOffset = rect.y; in cvRectToROI()
866 roi.width = rect.width; in cvRectToROI()
867 roi.height = rect.height; in cvRectToROI()
868 roi.coi = coi; in cvRectToROI()
870 return roi; in cvRectToROI()
874 CV_INLINE CvRect cvROIToRect( IplROI roi ) in cvROIToRect() argument
876 return cvRect( roi.xOffset, roi.yOffset, roi.width, roi.height ); in cvROIToRect()
/external/opencv/otherlibs/highgui/
Dhighgui.h252 return !img ? 0 : !img->roi ? img->width : img->roi->width; in LOAD_CHDL()
258 return !img ? 0 : !img->roi ? img->height : img->roi->height; in LOAD_CHDL()
312 IplROI roi; in LOAD_CHDL() local
314 roi.xOffset = r.left; in LOAD_CHDL()
315 roi.yOffset = r.top; in LOAD_CHDL()
316 roi.width = r.right - r.left; in LOAD_CHDL()
317 roi.height = r.bottom - r.top; in LOAD_CHDL()
318 roi.coi = 0; in LOAD_CHDL()
320 return roi; in LOAD_CHDL()
371 int Width() { return !m_img ? 0 : !m_img->roi ? m_img->width : m_img->roi->width; }; in Width()
[all …]
Dimage.cpp214 CvRect roi = cvGetImageROI( m_img ); in DrawToHDC() local
217 if( roi.width == dst.width && roi.height == dst.height ) in DrawToHDC()
219 Show( hDCDst, dst.x, dst.y, dst.width, dst.height, roi.x, roi.y ); in DrawToHDC()
223 if( roi.width > dst.width ) in DrawToHDC()
241 roi.x, roi.y, roi.width, roi.height, in DrawToHDC()
/external/opencv/cxcore/src/
Dcxarray.cpp1211 if( img->roi ) in cvGetRawData()
1213 *roi_size = cvSize( img->roi->width, img->roi->height ); in cvGetRawData()
1381 size = !img->roi ? img->height : img->roi->height; in cvGetDimSize()
1384 size = !img->roi ? img->width : img->roi->width; in cvGetDimSize()
1440 if( img->roi ) in cvGetSize()
1442 size.width = img->roi->width; in cvGetSize()
1443 size.height = img->roi->height; in cvGetSize()
1937 int width = !img->roi ? img->width : img->roi->width; in cvPtr1D()
2042 if( img->roi ) in cvPtr2D()
2044 width = img->roi->width; in cvPtr2D()
[all …]
Dcxpersistence.cpp3933 if( image->roi ) in icvWriteImage()
3936 cvWriteInt( fs, "x", image->roi->xOffset ); in icvWriteImage()
3937 cvWriteInt( fs, "y", image->roi->yOffset ); in icvWriteImage()
3938 cvWriteInt( fs, "width", image->roi->width ); in icvWriteImage()
3939 cvWriteInt( fs, "height", image->roi->height ); in icvWriteImage()
3940 cvWriteInt( fs, "coi", image->roi->coi ); in icvWriteImage()
3979 CvRect roi; in icvReadImage() local
4010 roi.x = cvReadIntByName( fs, roi_node, "x", 0 ); in icvReadImage()
4011 roi.y = cvReadIntByName( fs, roi_node, "y", 0 ); in icvReadImage()
4012 roi.width = cvReadIntByName( fs, roi_node, "width", 0 ); in icvReadImage()
[all …]
/external/opencv/cvaux/include/
Dcvaux.h174 #define CV_COUNT_OBS(roi, win, delta, numObs ) \ argument
176 (numObs)->width =((roi)->width -(win)->width +(delta)->width)/(delta)->width; \
177 (numObs)->height =((roi)->height -(win)->height +(delta)->height)/(delta)->height;\
233 IplImage *img_mask, CvRect *roi);
1408 CvRect roi CV_DEFAULT(cvRect(0,0,0,0)),
1412 CvArr* fgmask, CvRect roi CV_DEFAULT(cvRect(0,0,0,0)) );
1415 CvRect roi CV_DEFAULT(cvRect(0,0,0,0)),
/external/libvpx/libvpx/vp8/
Dvp8_cx_iface.c1212 vpx_roi_map_t *roi = (vpx_roi_map_t *)data; in vp8e_set_roi_map() local
1214 …if (!vp8_set_roimap(ctx->cpi, roi->roi_map, roi->rows, roi->cols, roi->delta_q, roi->delta_lf, roi in vp8e_set_roi_map()
/external/opencv/cv/include/
Dcvcompat.h949 #define CV_INIT_PIXEL_POS(pos, origin, _step, roi, _x, _y, orientation) \ argument
952 (pos).width = (roi).width, \
953 (pos).height = (roi).height, \

12