/external/opencv3/samples/cpp/ |
D | delaunay2.cpp | 34 pt[0] = Point(cvRound(t[0]), cvRound(t[1])); in draw_subdiv() 35 pt[1] = Point(cvRound(t[2]), cvRound(t[3])); in draw_subdiv() 36 pt[2] = Point(cvRound(t[4]), cvRound(t[5])); in draw_subdiv() 47 Point pt0 = Point(cvRound(e[0]), cvRound(e[1])); in draw_subdiv() 48 Point pt1 = Point(cvRound(e[2]), cvRound(e[3])); in draw_subdiv()
|
D | smiledetect.cpp | 171 Mat gray, smallImg( cvRound (img.rows/scale), cvRound(img.cols/scale), CV_8UC1 ); in detectAndDraw() 211 center.x = cvRound((r->x + r->width*0.5)*scale); in detectAndDraw() 212 center.y = cvRound((r->y + r->height*0.5)*scale); in detectAndDraw() 213 radius = cvRound((r->width + r->height)*0.25*scale); in detectAndDraw() 217 rectangle( img, cvPoint(cvRound(r->x*scale), cvRound(r->y*scale)), in detectAndDraw() 218 … cvPoint(cvRound((r->x + r->width-1)*scale), cvRound((r->y + r->height-1)*scale)), in detectAndDraw() 221 const int half_height=cvRound((float)r->height/2); in detectAndDraw() 245 int rect_height = cvRound((float)img.rows * intensityZeroOne); in detectAndDraw()
|
D | facedetect.cpp | 213 Mat gray, smallImg( cvRound (img.rows/scale), cvRound(img.cols/scale), CV_8UC1 ); in detectAndDraw() 255 center.x = cvRound((r->x + r->width*0.5)*scale); in detectAndDraw() 256 center.y = cvRound((r->y + r->height*0.5)*scale); in detectAndDraw() 257 radius = cvRound((r->width + r->height)*0.25*scale); in detectAndDraw() 261 rectangle( img, cvPoint(cvRound(r->x*scale), cvRound(r->y*scale)), in detectAndDraw() 262 … cvPoint(cvRound((r->x + r->width-1)*scale), cvRound((r->y + r->height-1)*scale)), in detectAndDraw() 277 center.x = cvRound((r->x + nr->x + nr->width*0.5)*scale); in detectAndDraw() 278 center.y = cvRound((r->y + nr->y + nr->height*0.5)*scale); in detectAndDraw() 279 radius = cvRound((nr->width + nr->height)*0.25*scale); in detectAndDraw()
|
D | ufacedetect.cpp | 255 center.x = cvRound((r->x + r->width*0.5)*scale); in detectAndDraw() 256 center.y = cvRound((r->y + r->height*0.5)*scale); in detectAndDraw() 257 radius = cvRound((r->width + r->height)*0.25*scale); in detectAndDraw() 261 rectangle( canvas, Point(cvRound(r->x*scale), cvRound(r->y*scale)), in detectAndDraw() 262 … Point(cvRound((r->x + r->width-1)*scale), cvRound((r->y + r->height-1)*scale)), in detectAndDraw() 277 center.x = cvRound((r->x + nr->x + nr->width*0.5)*scale); in detectAndDraw() 278 center.y = cvRound((r->y + nr->y + nr->height*0.5)*scale); in detectAndDraw() 279 radius = cvRound((nr->width + nr->height)*0.25*scale); in detectAndDraw()
|
D | houghlines.cpp | 43 pt1.x = cvRound(x0 + 1000*(-b)); in main() 44 pt1.y = cvRound(y0 + 1000*(a)); in main() 45 pt2.x = cvRound(x0 - 1000*(-b)); in main() 46 pt2.y = cvRound(y0 - 1000*(a)); in main()
|
D | contours2.cpp | 57 line(img, Point(cvRound(dx+100+j*10-80*cos(angle)), in main() 58 cvRound(dy+100-90*sin(angle))), in main() 59 Point(cvRound(dx+100+j*10-30*cos(angle)), in main() 60 cvRound(dy+100-30*sin(angle))), white, 1, 8, 0); in main()
|
D | stereo_calib.cpp | 288 w = cvRound(imageSize.width*sf); in StereoCalib() 289 h = cvRound(imageSize.height*sf); in StereoCalib() 295 w = cvRound(imageSize.width*sf); in StereoCalib() 296 h = cvRound(imageSize.height*sf); in StereoCalib() 311 Rect vroi(cvRound(validRoi[k].x*sf), cvRound(validRoi[k].y*sf), in StereoCalib() 312 cvRound(validRoi[k].width*sf), cvRound(validRoi[k].height*sf)); in StereoCalib()
|
D | em.cpp | 52 int response = cvRound(em_model->predict2( sample, noArray() )[1]); in main() 62 Point pt(cvRound(samples.at<float>(i, 0)), cvRound(samples.at<float>(i, 1))); in main()
|
/external/opencv3/samples/cpp/tutorial_code/Histograms_Matching/ |
D | calcHist_Demo.cpp | 51 int bin_w = cvRound( (double) hist_w/histSize ); in main() 63 line( histImage, Point( bin_w*(i-1), hist_h - cvRound(b_hist.at<float>(i-1)) ) , in main() 64 Point( bin_w*(i), hist_h - cvRound(b_hist.at<float>(i)) ), in main() 66 line( histImage, Point( bin_w*(i-1), hist_h - cvRound(g_hist.at<float>(i-1)) ) , in main() 67 Point( bin_w*(i), hist_h - cvRound(g_hist.at<float>(i)) ), in main() 69 line( histImage, Point( bin_w*(i-1), hist_h - cvRound(r_hist.at<float>(i-1)) ) , in main() 70 Point( bin_w*(i), hist_h - cvRound(r_hist.at<float>(i)) ), in main()
|
/external/opencv3/modules/hal/include/opencv2/hal/ |
D | defs.h | 364 cvRound( double value ) in cvRound() function 412 int i = cvRound(value); in cvFloor() 435 int i = cvRound(value); in cvCeil() 472 CV_INLINE int cvRound(float value) in cvRound() function 503 CV_INLINE int cvRound( int value ) in cvRound() function 519 int i = cvRound(value); in cvFloor() 542 int i = cvRound(value); in cvCeil() 628 template<> inline uchar saturate_cast<uchar>(float v) { int iv = cvRound(v); return saturate… 629 template<> inline uchar saturate_cast<uchar>(double v) { int iv = cvRound(v); return saturate… 638 template<> inline schar saturate_cast<schar>(float v) { int iv = cvRound(v); return saturate… [all …]
|
/external/opencv3/modules/video/src/ |
D | camshift.cpp | 67 eps = cvRound(eps*eps); in meanShift() 87 int dx = cvRound( m.m10/m.m00 - window.width*0.5 ); in meanShift() 88 int dy = cvRound( m.m01/m.m00 - window.height*0.5 ); in meanShift() 150 int xc = cvRound( m10 * inv_m00 + window.x ); in CamShift() 151 int yc = cvRound( m01 * inv_m00 + window.y ); in CamShift() 178 int _xc = cvRound( xc ); in CamShift() 179 int _yc = cvRound( yc ); in CamShift() 181 int t0 = cvRound( fabs( length * cs )); in CamShift() 182 int t1 = cvRound( fabs( width * sn )); in CamShift() 187 t0 = cvRound( fabs( length * sn )); in CamShift() [all …]
|
/external/opencv/cv/src/ |
D | cvcamshift.cpp | 93 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 …]
|
D | mycvHaarDetectObjects.cpp | 123 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 …]
|
D | cvsegmentation.cpp | 349 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()
|
D | cvhaar.cpp | 490 _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 …]
|
/external/opencv3/modules/features2d/src/ |
D | draw.cpp | 56 Point center( cvRound(p.pt.x * draw_multiplier), cvRound(p.pt.y * draw_multiplier) ); in _drawKeypoint() 60 int radius = cvRound(p.size/2 * draw_multiplier); // KeyPoint::size is a diameter in _drawKeypoint() 69 Point orient( cvRound(cos(srcAngleRad)*radius ), in _drawKeypoint() 70 cvRound(sin(srcAngleRad)*radius ) in _drawKeypoint() 184 Point(cvRound(pt1.x*draw_multiplier), cvRound(pt1.y*draw_multiplier)), in _drawMatch() 185 Point(cvRound(dpt2.x*draw_multiplier), cvRound(dpt2.y*draw_multiplier)), in _drawMatch()
|
D | orb.cpp | 152 int x0 = cvRound(pts[ptidx].pt.x); in HarrisResponses() 153 int y0 = cvRound(pts[ptidx].pt.y); in HarrisResponses() 184 …const uchar* center = &img.at<uchar>(cvRound(pts[ptidx].pt.y) + layer.y, cvRound(pts[ptidx].pt.x) … in ICAngles() 231 const uchar* center = &imagePyramid.at<uchar>(cvRound(kpt.pt.y*scale) + layer.y, in computeOrbDescriptors() 232 cvRound(kpt.pt.x*scale) + layer.x); in computeOrbDescriptors() 242 ix = cvRound(x), \ in computeOrbDescriptors() 243 iy = cvRound(y), \ in computeOrbDescriptors() 251 cvRound(center[iy*step + ix]*(1-x)*(1-y) + center[(iy+1)*step + ix]*(1-x)*y + \ in computeOrbDescriptors() 734 buf[i] = Vec3i(cvRound(src[i].pt.x), cvRound(src[i].pt.y), src[i].octave); in uploadORBKeypoints() 757 buf[i] = Vec4i(cvRound(src[i].pt.x*scale), cvRound(src[i].pt.y*scale), z, angle.i); in uploadORBKeypoints() [all …]
|
/external/opencv/cvaux/src/ |
D | _cvfacedetection.h | 148 …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()
|
D | cvcalibfilter.cpp | 116 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 …]
|
D | cvsubdiv2.cpp | 136 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()
|
/external/opencv/cxcore/src/ |
D | cxconvert.cpp | 972 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 …]
|
/external/opencv3/samples/cpp/tutorial_code/ImgTrans/ |
D | HoughLines_Demo.cpp | 102 Point pt1( cvRound(x0 + alpha*(-sin_t)), cvRound(y0 + alpha*cos_t) ); in Standard_Hough() 103 Point pt2( cvRound(x0 - alpha*(-sin_t)), cvRound(y0 - alpha*cos_t) ); in Standard_Hough()
|
D | HoughCircle_Demo.cpp | 40 Point center(cvRound(circles[i][0]), cvRound(circles[i][1])); in HoughDetection() 41 int radius = cvRound(circles[i][2]); in HoughDetection()
|
/external/opencv3/modules/imgproc/src/ |
D | hough.cpp | 96 int numangle = cvRound((max_theta - min_theta) / theta); in HoughLinesStandard() 97 int numrho = cvRound(((width + height) * 2 + 1) / rho); in HoughLinesStandard() 148 int r = cvRound( j * tabCos[n] + i * tabSin[n] ); in HoughLinesStandard() 429 int numangle = cvRound(CV_PI / theta); in HoughLinesProbabilistic() 430 int numrho = cvRound(((width + height) * 2 + 1) / rho); in HoughLinesProbabilistic() 517 int r = cvRound( j * ttab[n*2] + i * ttab[n*2+1] ); in HoughLinesProbabilistic() 541 dy0 = cvRound( b*(1 << shift)/fabs(a) ); in HoughLinesProbabilistic() 548 dx0 = cvRound( a*(1 << shift)/fabs(b) ); in HoughLinesProbabilistic() 638 int r = cvRound( j1 * ttab[n*2] + i1 * ttab[n*2+1] ); in HoughLinesProbabilistic() 746 int numangle = cvRound((max_theta - min_theta) / theta); in ocl_HoughLines() [all …]
|
/external/opencv3/modules/videoio/src/ |
D | cap_dc1394_v2.cpp | 712 frameWidth = cvRound(value); in setProperty() 719 frameHeight = cvRound(value); in setProperty() 734 userMode = cvRound(value); in setProperty() 739 isoSpeed = cvRound(value); in setProperty() 754 if (cvRound(value) == CV_CAP_PROP_DC1394_OFF) in setProperty() 778 if (cvRound(value) == CV_CAP_PROP_DC1394_MODE_AUTO) in setProperty() 786 if (cvRound(value) == CV_CAP_PROP_DC1394_MODE_ONE_PUSH_AUTO) in setProperty() 803 …if (dc1394_feature_whitebalance_set_value(dcCam,cvRound(value), act_feature->RV_value)!=DC1394_SUC… in setProperty() 807 act_feature->BU_value = cvRound(value); in setProperty() 813 …if (dc1394_feature_whitebalance_set_value(dcCam, act_feature->BU_value, cvRound(value))!=DC1394_SU… in setProperty() [all …]
|