Home
last modified time | relevance | path

Searched refs:cvRound (Results 1 – 25 of 76) sorted by relevance

1234

/external/opencv/cv/src/
Dcvcamshift.cpp93 eps = cvRound( criteria.epsilon * criteria.epsilon ); in cvMeanShift()
108 dx = cvRound( moments.m10 * inv_m00 - windowIn.width*0.5 ); in cvMeanShift()
109 dy = cvRound( moments.m01 * inv_m00 - windowIn.height*0.5 ); in cvMeanShift()
225 xc = cvRound( m10 * inv_m00 + windowIn.x ); in cvCamShift()
226 yc = cvRound( m01 * inv_m00 + windowIn.y ); in cvCamShift()
260 int _xc = cvRound( xc ); in cvCamShift()
261 int _yc = cvRound( yc ); in cvCamShift()
263 t0 = cvRound( fabs( length * cs )); in cvCamShift()
264 t1 = cvRound( fabs( width * sn )); in cvCamShift()
269 t0 = cvRound( fabs( length * sn )); in cvCamShift()
[all …]
DmycvHaarDetectObjects.cpp123 int distance = cvRound(r1->width*0.2); in myis_equal()
129 r2->width <= cvRound( r1->width * 1.2 ) && in myis_equal()
130 cvRound( r2->width * 1.2 ) >= r1->width; in myis_equal()
689 _cascade->real_window_size.width = cvRound( _cascade->orig_window_size.width * scale ); in mycvSetImagesForHaarClassifierCascade()
690 _cascade->real_window_size.height = cvRound( _cascade->orig_window_size.height * scale ); in mycvSetImagesForHaarClassifierCascade()
695 equ_rect.x = equ_rect.y = cvRound(scale); in mycvSetImagesForHaarClassifierCascade()
696 equ_rect.width = cvRound((_cascade->orig_window_size.width-2)*scale); in mycvSetImagesForHaarClassifierCascade()
697 equ_rect.height = cvRound((_cascade->orig_window_size.height-2)*scale); in mycvSetImagesForHaarClassifierCascade()
769 new_base_w = cvRound( r[0].width * scale ) / kx; in mycvSetImagesForHaarClassifierCascade()
770 x0 = cvRound( r[0].x * scale ); in mycvSetImagesForHaarClassifierCascade()
[all …]
Dcvsegmentation.cpp349 int isr2 = cvRound(sr2), isr22 = MAX(isr2,16); in cvPyrMeanShiftFiltering()
464 minx = cvRound(x0 - sp); minx = MAX(minx, 0); in cvPyrMeanShiftFiltering()
465 miny = cvRound(y0 - sp); miny = MAX(miny, 0); in cvPyrMeanShiftFiltering()
466 maxx = cvRound(x0 + sp); maxx = MIN(maxx, size.width-1); in cvPyrMeanShiftFiltering()
467 maxy = cvRound(y0 + sp); maxy = MIN(maxy, size.height-1); in cvPyrMeanShiftFiltering()
519 x1 = cvRound(sx*icount); in cvPyrMeanShiftFiltering()
520 y1 = cvRound(sy*icount); in cvPyrMeanShiftFiltering()
521 s0 = cvRound(s0*icount); in cvPyrMeanShiftFiltering()
522 s1 = cvRound(s1*icount); in cvPyrMeanShiftFiltering()
523 s2 = cvRound(s2*icount); in cvPyrMeanShiftFiltering()
Dcvhaar.cpp490 _cascade->real_window_size.width = cvRound( _cascade->orig_window_size.width * scale ); in cvSetImagesForHaarClassifierCascade()
491 _cascade->real_window_size.height = cvRound( _cascade->orig_window_size.height * scale ); in cvSetImagesForHaarClassifierCascade()
496 equ_rect.x = equ_rect.y = cvRound(scale); in cvSetImagesForHaarClassifierCascade()
497 equ_rect.width = cvRound((_cascade->orig_window_size.width-2)*scale); in cvSetImagesForHaarClassifierCascade()
498 equ_rect.height = cvRound((_cascade->orig_window_size.height-2)*scale); in cvSetImagesForHaarClassifierCascade()
570 new_base_w = cvRound( r[0].width * scale ) / kx; in cvSetImagesForHaarClassifierCascade()
571 x0 = cvRound( r[0].x * scale ); in cvSetImagesForHaarClassifierCascade()
577 new_base_h = cvRound( r[0].height * scale ) / ky; in cvSetImagesForHaarClassifierCascade()
578 y0 = cvRound( r[0].y * scale ); in cvSetImagesForHaarClassifierCascade()
596 tr.x = cvRound( r[k].x * scale ); in cvSetImagesForHaarClassifierCascade()
[all …]
Dcvhough.cpp114 numangle = cvRound(CV_PI / theta); in CV_IMPLEMENT_QSORT_EX()
115 numrho = cvRound(((width + height) * 2 + 1) / rho); in CV_IMPLEMENT_QSORT_EX()
136 r = cvRound( j * tabCos[n] + i * tabSin[n] ); in CV_IMPLEMENT_QSORT_EX()
514 numangle = cvRound(CV_PI / theta); in icvHoughLinesProbabalistic()
515 numrho = cvRound(((width + height) * 2 + 1) / rho); in icvHoughLinesProbabalistic()
581 r = cvRound( j * ttab[n*2] + i * ttab[n*2+1] ); in icvHoughLinesProbabalistic()
605 dy0 = cvRound( b*(1 << shift)/fabs(a) ); in icvHoughLinesProbabalistic()
612 dx0 = cvRound( a*(1 << shift)/fabs(b) ); in icvHoughLinesProbabalistic()
702 r = cvRound( j1 * ttab[n*2] + i1 * ttab[n*2+1] ); in icvHoughLinesProbabalistic()
807 iparam1 = cvRound(param1); in cvHoughLines2()
[all …]
Dcvpgh.cpp251 dp = cvRound( dp * angle_coeff * buffer[j] ) + in icvCalcPGH()
256 cvRound( icv_acos_table[dp] * angle_scale ); in icvCalcPGH()
258 d1 = cvRound( d1 * dist_coeff ); in icvCalcPGH()
259 d2 = cvRound( d2 * dist_coeff ); in icvCalcPGH()
Dcvdominants.cpp380 int dmin = cvRound(parameter1); in cvFindDominantPoints()
381 int dmax = cvRound(parameter2); in cvFindDominantPoints()
382 int dneigh = cvRound(parameter3); in cvFindDominantPoints()
383 int amax = cvRound(parameter4); in cvFindDominantPoints()
Dcvpyrsegmentation.cpp1439 _c.i = cvRound( cmp->c ); in icvSegmentClusterC1()
1530 c = cvRound( temp_cmp.c / temp_cmp.a ); in icvSegmentClusterC1()
1534 c = cvRound( c0 ); in icvSegmentClusterC1()
1618 c_blue = cvRound( cmp->c.blue ); in icvSegmentClusterC3()
1619 c_green = cvRound( cmp->c.green ); in icvSegmentClusterC3()
1620 c_red = cvRound( cmp->c.red ); in icvSegmentClusterC3()
1717 c_blue = cvRound( temp_cmp.c.blue / temp_cmp.a ); in icvSegmentClusterC3()
1718 c_green = cvRound( temp_cmp.c.green / temp_cmp.a ); in icvSegmentClusterC3()
1719 c_red = cvRound( temp_cmp.c.red / temp_cmp.a ); in icvSegmentClusterC3()
1723 c_blue = cvRound( c0.blue ); in icvSegmentClusterC3()
[all …]
Dcvimgwarp.cpp443 ify = cvRound(fy*ICV_CUBIC_TAB_SIZE); \
541 ICV_DEF_RESIZE_BILINEAR_FUNC( 16u, ushort, float, alpha, CV_NOP, cvRound )
544 ICV_DEF_RESIZE_BICUBIC_FUNC( 8u, uchar, int, CV_8TO32F, cvRound, CV_CAST_8U )
545 ICV_DEF_RESIZE_BICUBIC_FUNC( 16u, ushort, int, CV_NOP, cvRound, CV_CAST_16U )
548 ICV_DEF_RESIZE_AREA_FAST_FUNC( 8u, uchar, int, cvRound )
549 ICV_DEF_RESIZE_AREA_FAST_FUNC( 16u, ushort, int, cvRound )
552 ICV_DEF_RESIZE_AREA_FUNC( 8u, uchar, CV_8TO32F, cvRound )
553 ICV_DEF_RESIZE_AREA_FUNC( 16u, ushort, CV_NOP, cvRound )
711 int iscale_x = cvRound(scale_x); in cvResize()
712 int iscale_y = cvRound(scale_y); in cvResize()
[all …]
/external/opencv/cvaux/src/
D_cvfacedetection.h148 …CvRect LeftEyeRect = cvRect(cvRound(rect.x - (dEyeWidth + dDistanceBetweenEye/(double)2 - (double)… in MouthFaceTemplate()
149 cvRound(rect.y - dDistanceEyeAboveMouth - dEyeHeight), in MouthFaceTemplate()
150 cvRound(dEyeWidth), in MouthFaceTemplate()
151 cvRound(dEyeHeight) ); in MouthFaceTemplate()
153 …CvRect RightEyeRect = cvRect(cvRound(rect.x + (double)rect.width/(double)2 + dDistanceBetweenEye/(… in MouthFaceTemplate()
154 cvRound(rect.y - dDistanceEyeAboveMouth - dEyeHeight), in MouthFaceTemplate()
155 cvRound(dEyeWidth), in MouthFaceTemplate()
156 cvRound(dEyeHeight) ); in MouthFaceTemplate()
Dcvcalibfilter.cpp116 if( !params || cvRound(params[0]) != params[0] || params[0] < 3 || in SetEtalon()
117 cvRound(params[1]) != params[1] || params[1] < 3 || params[2] <= 0 ) in SetEtalon()
123 pointCount = cvRound((params[0] - 1)*(params[1] - 1)); in SetEtalon()
160 int etalonWidth = cvRound( params[0] ) - 1; in SetEtalon()
161 int etalonHeight = cvRound( params[1] ) - 1; in SetEtalon()
411 cvSize( cvRound(etalonParams[0]), in FindEtalon()
412 cvRound(etalonParams[1])), in FindEtalon()
553 pt.x = cvRound(pts[j].x); in DrawPoints()
554 pt.y = cvRound(pts[j].y); in DrawPoints()
559 color = line_colors[(j/cvRound(etalonParams[0]))%colorCount]; in DrawPoints()
[all …]
Dcvsubdiv2.cpp136 buf[i] = cvPoint( cvRound( pt->pt.x ), cvRound( pt->pt.y )); in draw_subdiv_facet()
143 CvPoint ip = cvPoint( cvRound( pt->pt.x ), cvRound( pt->pt.y )); in draw_subdiv_facet()
Dcvmat.cpp85 i = cvRound(d);
89 i = cvRound(d);
93 i = cvRound(d);
97 i = cvRound(d);
145 i = cvRound(d);
151 i = cvRound(d);
157 i = cvRound(d);
163 i = cvRound(d);
Dcvdpstereo.cpp101 int param1 = cvRound(_param1); in icvFindStereoCorrespondenceByBirchfieldDP()
102 int param2 = cvRound(_param2); in icvFindStereoCorrespondenceByBirchfieldDP()
103 int param3 = cvRound(_param3); in icvFindStereoCorrespondenceByBirchfieldDP()
104 int param4 = cvRound(_param4); in icvFindStereoCorrespondenceByBirchfieldDP()
105 int param5 = cvRound(_param5); in icvFindStereoCorrespondenceByBirchfieldDP()
Dcvsegment.cpp191 newVal[0] = cvRound( sum[0] * inv_area ); in icvSegmFloodFill_Stage1()
192 newVal[1] = cvRound( sum[1] * inv_area ); in icvSegmFloodFill_Stage1()
193 newVal[2] = cvRound( sum[2] * inv_area ); in icvSegmFloodFill_Stage1()
497 int ffill_lw_up = cvRound( fabs(ffill_threshold) ); in cvSegmentImage()
Dcvface.cpp154 long x = Rect.x + cvRound(Rect.width/2); in CheckElem()
155 long y = Rect.y + cvRound(Rect.height/2); in CheckElem()
/external/opencv/cxcore/src/
Dcxconvert.cpp972 int t = cvRound(fabs(val)); in icvCvtScaleAbsTo_8u_C1R()
981 int t = cvRound(fabs(val)); in icvCvtScaleAbsTo_8u_C1R()
992 int iscale = cvRound(scale*(1 << ICV_FIX_SHIFT)); in icvCvtScaleAbsTo_8u_C1R()
1007 ICV_DEF_CVT_SCALE_ABS_CASE( ushort, int, cvRound, CV_IABS, in icvCvtScaleAbsTo_8u_C1R()
1015 int iscale = cvRound(scale*(1 << ICV_FIX_SHIFT)); in icvCvtScaleAbsTo_8u_C1R()
1016 int ishift = cvRound(shift*(1 << ICV_FIX_SHIFT)); in icvCvtScaleAbsTo_8u_C1R()
1031 ICV_DEF_CVT_SCALE_ABS_CASE( short, int, cvRound, CV_IABS, in icvCvtScaleAbsTo_8u_C1R()
1036 ICV_DEF_CVT_SCALE_ABS_CASE( int, int, cvRound, CV_IABS, in icvCvtScaleAbsTo_8u_C1R()
1040 ICV_DEF_CVT_SCALE_ABS_CASE( float, int, cvRound, CV_IABS, in icvCvtScaleAbsTo_8u_C1R()
1044 ICV_DEF_CVT_SCALE_ABS_CASE( double, int, cvRound, CV_IABS, in icvCvtScaleAbsTo_8u_C1R()
[all …]
Dcxdrawing.cpp899 pts->x = cvRound( cx + x * alpha - y * beta ); in cvEllipse2Poly()
900 pts->y = cvRound( cy - x * beta - y * alpha ); in cvEllipse2Poly()
1183 pt0.x = cvRound((x.f + offset.x) * XY_ONE); in icvCollectPolyEdges()
1184 pt0.y = cvRound(y.f + offset.y); in icvCollectPolyEdges()
1186 pt1.x = cvRound((x.f + offset.x) * XY_ONE); in icvCollectPolyEdges()
1187 pt1.y = cvRound(y.f + offset.y); in icvCollectPolyEdges()
1596 dp.x = cvRound( dy * r ); in icvThickLine()
1597 dp.y = cvRound( dx * r ); in icvThickLine()
1678 int icolor = cvRound( packed_color ); in cvColorToScalar()
1694 int icolor = cvRound( packed_color ); in cvColorToScalar()
[all …]
Dcxarithm.cpp1292 ICV_DEF_MUL_OP_CASE( 8u, uchar, int, cvRound, CV_CAST_8U, CV_8TO32F )
1293 ICV_DEF_MUL_OP_CASE( 16u, ushort, int, cvRound, CV_CAST_16U, CV_NOP )
1294 ICV_DEF_MUL_OP_CASE( 16s, short, int, cvRound, CV_CAST_16S, CV_NOP )
1295 ICV_DEF_MUL_OP_CASE( 32s, int, int, cvRound, CV_CAST_32S, CV_NOP )
1616 cvRound, CV_CAST_8U, CV_8TO32F, CV_NONZERO, src2 )
1624 cvRound, CV_CAST_16U, CV_CAST_64F, CV_NONZERO, src2 )
1626 cvRound, CV_CAST_16S, CV_NOP, CV_NONZERO, src2 )
1628 cvRound, CV_CAST_32S, CV_CAST_64F, CV_NONZERO, src2 )
1635 cvRound, CV_CAST_8U, CV_8TO32F, CV_NONZERO, src )
1637 cvRound, CV_CAST_16U, CV_CAST_64F, CV_NONZERO, src )
[all …]
Dcxmatmul.cpp1481 ICV_DEF_TRANSFORM_FUNC( 8u_C1R, uchar, int, CV_8TO32F, cvRound, CV_CAST_8U, 1 )
1482 ICV_DEF_TRANSFORM_FUNC( 8u_C2R, uchar, int, CV_8TO32F, cvRound, CV_CAST_8U, 2 )
1483 ICV_DEF_TRANSFORM_FUNC( 8u_C3R, uchar, int, CV_8TO32F, cvRound, CV_CAST_8U, 3 )
1484 ICV_DEF_TRANSFORM_FUNC( 8u_C4R, uchar, int, CV_8TO32F, cvRound, CV_CAST_8U, 4 )
1486 ICV_DEF_TRANSFORM_FUNC( 16u_C1R, ushort, int, CV_NOP, cvRound, CV_CAST_16U, 1 )
1487 ICV_DEF_TRANSFORM_FUNC( 16u_C2R, ushort, int, CV_NOP, cvRound, CV_CAST_16U, 2 )
1488 ICV_DEF_TRANSFORM_FUNC( 16u_C3R, ushort, int, CV_NOP, cvRound, CV_CAST_16U, 3 )
1489 ICV_DEF_TRANSFORM_FUNC( 16u_C4R, ushort, int, CV_NOP, cvRound, CV_CAST_16U, 4 )
1491 ICV_DEF_TRANSFORM_FUNC( 16s_C1R, short, int, CV_NOP, cvRound, CV_CAST_16S, 1 )
1492 ICV_DEF_TRANSFORM_FUNC( 16s_C2R, short, int, CV_NOP, cvRound, CV_CAST_16S, 2 )
[all …]
Dcxmathfuncs.cpp536 int it = cvRound(t); in icvSinCos_32f()
843 val0 = cvRound(x0);
844 val1 = cvRound(x1);
845 val2 = cvRound(x2);
846 val3 = cvRound(x3);
890 val0 = cvRound(x0);
954 val0 = cvRound(x0);
955 val1 = cvRound(x1);
956 val2 = cvRound(x2);
957 val3 = cvRound(x3);
[all …]
Dcxrand.cpp406 ICV_IMPL_RANDN( 8u, uchar, int, cvRound, CV_CAST_8U )
407 ICV_IMPL_RANDN( 16u, ushort, int, cvRound, CV_CAST_16U )
408 ICV_IMPL_RANDN( 16s, short, int, cvRound, CV_CAST_16S )
409 ICV_IMPL_RANDN( 32s, int, int, cvRound, CV_CAST_32S )
/external/opencv/cvaux/include/
Dcvmat.hpp262 int t0 = cvRound(a.val[0]) & cvRound(b.val[0]);
263 int t1 = cvRound(a.val[1]) & cvRound(b.val[1]);
267 t0 = cvRound(a.val[2]) & cvRound(b.val[2]);
268 t1 = cvRound(a.val[3]) & cvRound(b.val[3]);
278 int t0 = cvRound(a.val[0]) | cvRound(b.val[0]);
279 int t1 = cvRound(a.val[1]) | cvRound(b.val[1]);
283 t0 = cvRound(a.val[2]) | cvRound(b.val[2]);
284 t1 = cvRound(a.val[3]) | cvRound(b.val[3]);
294 int t0 = cvRound(a.val[0]) ^ cvRound(b.val[0]);
295 int t1 = cvRound(a.val[1]) ^ cvRound(b.val[1]);
[all …]
/external/opencv/otherlibs/highgui/
Dgrfmt_exr.cpp359 int t = cvRound(fi[x]*5); in ReadData()
500 int t = cvRound(b); in ChromaToBGR()
502 t = cvRound(Y); in ChromaToBGR()
504 t = cvRound(r); in ChromaToBGR()
515 int t = cvRound(b); in ChromaToBGR()
517 t = cvRound(Y); in ChromaToBGR()
519 t = cvRound(r); in ChromaToBGR()
/external/opencv/ml/src/
Dmlestimate.cpp258 if (cvRound (responses_result[*data]) == cvRound (responses_fl[*data * step]))
269 if (cvRound (responses_result[*data]) == responses_i[*data * step])
583 *folds++ = cvRound (i * s_len * 1. / k_fold);

1234