Home
last modified time | relevance | path

Searched refs:pt0 (Results 1 – 25 of 31) sorted by relevance

12

/external/opencv3/modules/imgproc/src/
Drotcalipers.cpp113 Point2f pt0 = points[0]; in rotatingCalipers() local
115 left_x = right_x = pt0.x; in rotatingCalipers()
116 top_y = bottom_y = pt0.y; in rotatingCalipers()
122 if( pt0.x < left_x ) in rotatingCalipers()
123 left_x = pt0.x, left = i; in rotatingCalipers()
125 if( pt0.x > right_x ) in rotatingCalipers()
126 right_x = pt0.x, right = i; in rotatingCalipers()
128 if( pt0.y > top_y ) in rotatingCalipers()
129 top_y = pt0.y, top = i; in rotatingCalipers()
131 if( pt0.y < bottom_y ) in rotatingCalipers()
[all …]
Dapprox.cpp137 CvPoint pt0; in icvApproximateChainTC89() local
141 pt0 = array[i].pt; in icvApproximateChainTC89()
165 dk_num = (pt0.x - array[i1].pt.x) * dy - (pt0.y - array[i1].pt.y) * dx; in icvApproximateChainTC89()
192 dx1 = array[i1].pt.x - pt0.x; in icvApproximateChainTC89()
193 dy1 = array[i1].pt.y - pt0.y; in icvApproximateChainTC89()
194 dx2 = array[i2].pt.x - pt0.x; in icvApproximateChainTC89()
195 dy2 = array[i2].pt.y - pt0.y; in icvApproximateChainTC89()
Ddrawing.cpp1088 Point pt0, pt1; in FillConvexPoly() local
1089 pt0.x = p0.x >> XY_SHIFT; in FillConvexPoly()
1090 pt0.y = p0.y >> XY_SHIFT; in FillConvexPoly()
1093 Line( img, pt0, pt1, color, line_type ); in FillConvexPoly()
1200 Point pt0 = v[count-1], pt1; in CollectPolyEdges() local
1201 pt0.x = (pt0.x + offset.x) << (XY_SHIFT - shift); in CollectPolyEdges()
1202 pt0.y = (pt0.y + delta) >> shift; in CollectPolyEdges()
1206 for( i = 0; i < count; i++, pt0 = pt1 ) in CollectPolyEdges()
1217 t0.y = pt0.y; t1.y = pt1.y; in CollectPolyEdges()
1218 t0.x = (pt0.x + (XY_ONE >> 1)) >> XY_SHIFT; in CollectPolyEdges()
[all …]
Dconvhull.cpp297 Point pt0 = ptr[hcurr], pt1 = ptr[hnext]; in convexityDefects() local
298 double dx0 = pt1.x - pt0.x; in convexityDefects()
299 double dy0 = pt1.y - pt0.y; in convexityDefects()
315 double dx = ptr[j].x - pt0.x; in convexityDefects()
316 double dy = ptr[j].y - pt0.y; in convexityDefects()
Dshapedescr.cpp60 static bool findCircle( Point2f pt0, Point2f pt1, Point2f pt2, in findCircle() argument
63 double x1 = (pt0.x + pt1.x) * 0.5; in findCircle()
64 double dy1 = pt0.x - pt1.x; in findCircle()
67 double y1 = (pt0.y + pt1.y) * 0.5; in findCircle()
68 double dx1 = pt1.y - pt0.y; in findCircle()
77 *radius = (float)norm(*center - pt0); in findCircle()
/external/opencv/cv/src/
Dcvrotcalipers.cpp113 CvPoint2D32f pt0 = points[0]; in icvRotatingCalipers() local
115 left_x = right_x = pt0.x; in icvRotatingCalipers()
116 top_y = bottom_y = pt0.y; in icvRotatingCalipers()
122 if( pt0.x < left_x ) in icvRotatingCalipers()
123 left_x = pt0.x, left = i; in icvRotatingCalipers()
125 if( pt0.x > right_x ) in icvRotatingCalipers()
126 right_x = pt0.x, right = i; in icvRotatingCalipers()
128 if( pt0.y > top_y ) in icvRotatingCalipers()
129 top_y = pt0.y, top = i; in icvRotatingCalipers()
131 if( pt0.y < bottom_y ) in icvRotatingCalipers()
[all …]
Dcvapprox.cpp162 CvPoint pt0; in icvApproximateChainTC89() local
166 pt0 = array[i].pt; in icvApproximateChainTC89()
190 dk_num = (pt0.x - array[i1].pt.x) * dy - (pt0.y - array[i1].pt.y) * dx; in icvApproximateChainTC89()
217 dx1 = array[i1].pt.x - pt0.x; in icvApproximateChainTC89()
218 dy1 = array[i1].pt.y - pt0.y; in icvApproximateChainTC89()
219 dx2 = array[i2].pt.x - pt0.x; in icvApproximateChainTC89()
220 dy2 = array[i2].pt.y - pt0.y; in icvApproximateChainTC89()
Dcvshapedescr.cpp134 icvFindCircle( CvPoint2D32f pt0, CvPoint2D32f pt1, in icvFindCircle() argument
137 double x1 = (pt0.x + pt1.x) * 0.5; in icvFindCircle()
138 double dy1 = pt0.x - pt1.x; in icvFindCircle()
141 double y1 = (pt0.y + pt1.y) * 0.5; in icvFindCircle()
142 double dx1 = pt1.y - pt0.y; in icvFindCircle()
153 *radius = (float) icvDistanceL2_32f( *center, pt0 ); in icvFindCircle()
/external/opencv3/samples/cpp/
Dsquares.cpp37 static double angle( Point pt1, Point pt2, Point pt0 ) in angle() argument
39 double dx1 = pt1.x - pt0.x; in angle()
40 double dy1 = pt1.y - pt0.y; in angle()
41 double dx2 = pt2.x - pt0.x; in angle()
42 double dy2 = pt2.y - pt0.y; in angle()
Dconvexhull.cpp47 Point pt0 = points[hull[hullcount-1]]; in main() local
52 line(img, pt0, pt, Scalar(0, 255, 0), 1,LINE_AA); in main()
53 pt0 = pt; in main()
Ddelaunay2.cpp47 Point pt0 = Point(cvRound(e[0]), cvRound(e[1])); in draw_subdiv()
49 line(img, pt0, pt1, delaunay_color, 1, LINE_AA, 0); in draw_subdiv()
/external/opencv3/samples/tapi/
Dsquares.cpp23 static double angle( Point pt1, Point pt2, Point pt0 ) in angle() argument
25 double dx1 = pt1.x - pt0.x; in angle()
26 double dy1 = pt1.y - pt0.y; in angle()
27 double dx2 = pt2.x - pt0.x; in angle()
28 double dy2 = pt2.y - pt0.y; in angle()
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_renderer.c145 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local
147 pt0[0] = srcX; in add_vertex_data1()
148 pt0[1] = srcY; in add_vertex_data1()
157 map_point(src_matrix, pt0[0], pt0[1], &pt0[0], &pt0[1]); in add_vertex_data1()
163 s0 = pt0[0] / src->width0; in add_vertex_data1()
167 t0 = pt0[1] / src->height0; in add_vertex_data1()
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_renderer.c192 float pt0[2], pt1[2], pt2[2], pt3[2]; in add_vertex_data1() local
194 pt0[0] = srcX; in add_vertex_data1()
195 pt0[1] = srcY; in add_vertex_data1()
204 map_point((float *)src_matrix, pt0[0], pt0[1], &pt0[0], &pt0[1]); in add_vertex_data1()
210 s0 = pt0[0] / src->width0; in add_vertex_data1()
214 t0 = pt0[1] / src->height0; in add_vertex_data1()
/external/opencv/cxcore/src/
Dcxdrawing.cpp1041 CvPoint pt0, pt1; in icvFillConvexPoly() local
1042 pt0.x = p0.x >> XY_SHIFT; in icvFillConvexPoly()
1043 pt0.y = p0.y >> XY_SHIFT; in icvFillConvexPoly()
1046 icvLine( img, pt0, pt1, color, line_type ); in icvFillConvexPoly()
1166 CvPoint pt0, pt1, t0, t1; in icvCollectPolyEdges() local
1168 CV_READ_EDGE( pt0, pt1, reader ); in icvCollectPolyEdges()
1172 pt0.x = (pt0.x + offset.x) << (XY_SHIFT - shift); in icvCollectPolyEdges()
1173 pt0.y = (pt0.y + delta) >> shift; in icvCollectPolyEdges()
1182 x.i = pt0.x; y.i = pt0.y; in icvCollectPolyEdges()
1183 pt0.x = cvRound((x.f + offset.x) * XY_ONE); in icvCollectPolyEdges()
[all …]
/external/opencv3/modules/objdetect/test/
Dtest_cascadeandhog.cpp1038 Point pt0; in detect() local
1041 pt0 = locations[i]; in detect()
1042 if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || in detect()
1043 pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) in detect()
1048 pt0 = cache.getWindow(paddedImgSize, winStride, (int)i).tl() - Point(padding); in detect()
1049 CV_Assert(pt0.x % cacheStride.width == 0 && pt0.y % cacheStride.height == 0); in detect()
1057 Point pt = pt0 + bj.imgOffset; in detect()
1068 hits.push_back(pt0); in detect()
1140 Point pt0; in compute() local
1143 pt0 = locations[i]; in compute()
[all …]
/external/opencv3/modules/videostab/src/
Dglobal_motion.cpp241 Point2f pt0, pt1; in estimateGlobMotionLeastSquaresRigid() local
245 pt0 = points0[i] - mean0; in estimateGlobMotionLeastSquaresRigid()
247 A(0,0) += pt1.x * pt0.x; in estimateGlobMotionLeastSquaresRigid()
248 A(0,1) += pt1.x * pt0.y; in estimateGlobMotionLeastSquaresRigid()
249 A(1,0) += pt1.y * pt0.x; in estimateGlobMotionLeastSquaresRigid()
250 A(1,1) += pt1.y * pt0.y; in estimateGlobMotionLeastSquaresRigid()
268 pt0 = points0[i]; in estimateGlobMotionLeastSquaresRigid()
270 *rmse += sqr(pt1.x - M(0,0)*pt0.x - M(0,1)*pt0.y - M(0,2)) + in estimateGlobMotionLeastSquaresRigid()
271 sqr(pt1.y - M(1,0)*pt0.x - M(1,1)*pt0.y - M(1,2)); in estimateGlobMotionLeastSquaresRigid()
/external/skia/src/ports/
DSkFontHost_FreeType_common.cpp528 static int quad_proc(const FT_Vector* pt0, const FT_Vector* pt1, in quad_proc() argument
531 path->quadTo(SkFDot6ToScalar(pt0->x), -SkFDot6ToScalar(pt0->y), in quad_proc()
536 static int cubic_proc(const FT_Vector* pt0, const FT_Vector* pt1, in cubic_proc() argument
539 path->cubicTo(SkFDot6ToScalar(pt0->x), -SkFDot6ToScalar(pt0->y), in cubic_proc()
/external/opencv3/modules/objdetect/src/
Dhog.cpp1432 Point pt0; in compute() local
1435 pt0 = locations[i]; in compute()
1436 if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || in compute()
1437 pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) in compute()
1442 pt0 = cache.getWindow(paddedImgSize, winStride, (int)i).tl() - Point(padding); in compute()
1449 Point pt = pt0 + bj.imgOffset; in compute()
1498 Point pt0; in detect() local
1501 pt0 = locations[i]; in detect()
1502 if( pt0.x < -padding.width || pt0.x > img.cols + padding.width - winSize.width || in detect()
1503 pt0.y < -padding.height || pt0.y > img.rows + padding.height - winSize.height ) in detect()
[all …]
/external/pdfium/xfa/src/fdp/src/fde/
Dfde_gedevice.cpp538 CFX_PointF pt0, pt1; in FillLinearGradientPath() local
539 pLinearBrush->GetLinearPoints(pt0, pt1); in FillLinearGradientPath()
541 fDiagonal.Set(pt0, pt1); in FillLinearGradientPath()
564 pt1 = pt0; in FillLinearGradientPath()
569 dev.DrawCosmeticLine(pt0.x, pt0.y, pt1.x, pt1.y, cr0); in FillLinearGradientPath()
571 pt0.y += dy; in FillLinearGradientPath()
/external/pdfium/third_party/freetype/src/cff/
Dcf2ft.c162 params->pt0.x, in cf2_builder_lineTo()
163 params->pt0.y ); in cf2_builder_lineTo()
206 params->pt0.x, in cf2_builder_cubeTo()
207 params->pt0.y ); in cf2_builder_cubeTo()
Dcf2glue.h104 FT_Vector pt0; member
Dcf2hints.c1281 params.pt0 = glyphpath->currentDS; in cf2_glyphpath_pushPrevElem()
1309 if ( params.pt0.x != params.pt1.x || params.pt0.y != params.pt1.y ) in cf2_glyphpath_pushPrevElem()
1375 params.pt0 = glyphpath->currentDS; in cf2_glyphpath_pushPrevElem()
1402 params.pt0 = glyphpath->currentDS; in cf2_glyphpath_pushMove()
/external/freetype/src/cff/
Dcf2ft.c162 params->pt0.x, in cf2_builder_lineTo()
163 params->pt0.y ); in cf2_builder_lineTo()
206 params->pt0.x, in cf2_builder_cubeTo()
207 params->pt0.y ); in cf2_builder_cubeTo()
Dcf2glue.h104 FT_Vector pt0; member

12