Home
last modified time | relevance | path

Searched refs:points (Results 1 – 25 of 925) sorted by relevance

12345678910>>...37

/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/fitting/
DGaussianParametersGuesser.java79 private double[] basicGuess(WeightedObservedPoint[] points) { in basicGuess() argument
80 Arrays.sort(points, createWeightedObservedPointComparator()); in basicGuess()
83 int minYIdx = findMinY(points); in basicGuess()
84 params[0] = points[minYIdx].getY(); in basicGuess()
86 int maxYIdx = findMaxY(points); in basicGuess()
87 params[1] = points[maxYIdx].getY(); in basicGuess()
88 params[2] = points[maxYIdx].getX(); in basicGuess()
93 double fwhmX1 = interpolateXAtY(points, maxYIdx, -1, halfY); in basicGuess()
94 double fwhmX2 = interpolateXAtY(points, maxYIdx, +1, halfY); in basicGuess()
97 fwhmApprox = points[points.length - 1].getX() - points[0].getX(); in basicGuess()
[all …]
/external/fonttools/Lib/fontTools/pens/
DbasePen.py58 def curveTo(self, *points): argument
79 def qCurveTo(self, *points): argument
128 def curveTo(self, *points): argument
131 def qCurveTo(self, *points): argument
226 def curveTo(self, *points): argument
227 n = len(points) - 1 # 'n' is the number of control points
234 self._curveToOne(*points)
235 self.__currentPoint = points[-1]
245 for pt1, pt2, pt3 in decomposeSuperBezierSegment(points):
249 self.qCurveTo(*points)
[all …]
/external/opencv3/modules/java/common_test/src/org/opencv/test/utils/
DConvertersTest.java111 List<Point> points = new ArrayList<Point>(); in testMat_to_vector_Point() local
113 Converters.Mat_to_vector_Point(src, points); in testMat_to_vector_Point()
120 assertListPointEquals(truth, points, EPS); in testMat_to_vector_Point()
126 List<Point> points = new ArrayList<Point>(); in testMat_to_vector_Point2d() local
128 Converters.Mat_to_vector_Point2d(src, points); in testMat_to_vector_Point2d()
135 assertListPointEquals(truth, points, EPS); in testMat_to_vector_Point2d()
141 List<Point> points = new ArrayList<Point>(); in testMat_to_vector_Point2f() local
143 Converters.Mat_to_vector_Point(src, points); in testMat_to_vector_Point2f()
150 assertListPointEquals(truth, points, EPS); in testMat_to_vector_Point2f()
156 List<Point3> points = new ArrayList<Point3>(); in testMat_to_vector_Point3() local
[all …]
/external/pdfium/xfa/src/fxbarcode/qrcode/
DBC_QRGridSampler.cpp34 CFX_FloatArray* points, in CheckAndNudgePoints() argument
40 for (offset = 0; offset < points->GetSize() && nudged; offset += 2) { in CheckAndNudgePoints()
41 int32_t x = (int32_t)(*points)[offset]; in CheckAndNudgePoints()
42 int32_t y = (int32_t)(*points)[offset + 1]; in CheckAndNudgePoints()
49 (*points)[offset] = 0.0f; in CheckAndNudgePoints()
52 (*points)[offset] = (FX_FLOAT)(width - 1); in CheckAndNudgePoints()
56 (*points)[offset + 1] = 0.0f; in CheckAndNudgePoints()
59 (*points)[offset + 1] = (FX_FLOAT)(height - 1); in CheckAndNudgePoints()
64 for (offset = (*points).GetSize() - 2; offset >= 0 && nudged; offset -= 2) { in CheckAndNudgePoints()
65 int32_t x = (int32_t)(*points)[offset]; in CheckAndNudgePoints()
[all …]
/external/mesa3d/src/glx/
Deval.c41 const GLfloat * points, GLubyte * pc) in __glFillMap1f() argument
45 __GLX_PUT_FLOAT_ARRAY(0, points, order * k); in __glFillMap1f()
51 __GLX_PUT_FLOAT_ARRAY(0, points, k); in __glFillMap1f()
52 points += stride; in __glFillMap1f()
60 const GLdouble * points, GLubyte * pc) in __glFillMap1d() argument
64 __GLX_PUT_DOUBLE_ARRAY(0, points, order * k); in __glFillMap1d()
69 __GLX_PUT_DOUBLE_ARRAY(0, points, k); in __glFillMap1d()
70 points += stride; in __glFillMap1d()
79 const GLfloat * points, GLfloat * data) in __glFillMap2f() argument
85 __GLX_MEM_COPY(data, points, majorOrder * majorStride * in __glFillMap2f()
[all …]
/external/skia/bench/
DHairlinePathBench.cpp26 static const int points[] = { variable
90 int size = SK_ARRAY_COUNT(points); in makePath()
101 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
102 SkIntToScalar(points[base1+1] + yTrans)); in makePath()
103 path->lineTo(SkIntToScalar(points[base2] + xTrans), in makePath()
104 SkIntToScalar(points[base2+1] + yTrans)); in makePath()
105 path->lineTo(SkIntToScalar(points[base3] + xTrans), in makePath()
106 SkIntToScalar(points[base3+1] + yTrans)); in makePath()
122 int size = SK_ARRAY_COUNT(points); in makePath()
133 path->moveTo(SkIntToScalar(points[base1] + xTrans), in makePath()
[all …]
/external/skia/src/animator/
DSkParseSVGPath.cpp119 SkPoint points[3]; in parseSVG() local
144 data = find_points(data, points, 1, relative, &c); in parseSVG()
145 fPath.moveTo(points[0]); in parseSVG()
147 c = points[0]; in parseSVG()
150 data = find_points(data, points, 1, relative, &c); in parseSVG()
151 fPath.lineTo(points[0]); in parseSVG()
152 c = points[0]; in parseSVG()
169 data = find_points(data, points, 3, relative, &c); in parseSVG()
172 data = find_points(data, &points[1], 2, relative, &c); in parseSVG()
173 points[0] = c; in parseSVG()
[all …]
/external/opencv3/modules/flann/include/opencv2/flann/
Dsimplex_downhill.h41 void addValue(int pos, float val, float* vals, T* point, T* points, int n) in addValue() argument
45 points[pos*n+i] = point[i]; in addValue()
53 swap(points[j*n+i],points[(j-1)*n+i]); in addValue()
69 float optimizeSimplexDownhill(T* points, int n, F func, float* vals = NULL )
88 float val = func(points+i*n);
89 addValue(i, val, vals, points+i*n, points, n);
102 p_o[i] += points[j*n+i];
111 if (p_o[i] != points[nn+i]) {
119 p_r[i] = p_o[i] + alpha*(p_o[i]-points[nn+i]);
127 addValue(n, val_r,vals, p_r, points, n);
[all …]
/external/opencv3/samples/cpp/
Dlkdemo.cpp65 vector<Point2f> points[2]; in main() local
82 goodFeaturesToTrack(gray, points[1], MAX_COUNT, 0.01, 10, Mat(), 3, 0, 0.04); in main()
83 cornerSubPix(gray, points[1], subPixWinSize, Size(-1,-1), termcrit); in main()
86 else if( !points[0].empty() ) in main()
92 calcOpticalFlowPyrLK(prevGray, gray, points[0], points[1], status, err, winSize, in main()
95 for( i = k = 0; i < points[1].size(); i++ ) in main()
99 if( norm(point - points[1][i]) <= 5 ) in main()
109 points[1][k++] = points[1][i]; in main()
110 circle( image, points[1][i], 3, Scalar(0,255,0), -1, 8); in main()
112 points[1].resize(k); in main()
[all …]
/external/opencv3/modules/imgproc/src/
Dlinefit.cpp48 static void fitLine2D_wods( const Point2f* points, int count, float *weights, float *line ) in fitLine2D_wods() argument
60 x += points[i].x; in fitLine2D_wods()
61 y += points[i].y; in fitLine2D_wods()
62 x2 += points[i].x * points[i].x; in fitLine2D_wods()
63 y2 += points[i].y * points[i].y; in fitLine2D_wods()
64 xy += points[i].x * points[i].y; in fitLine2D_wods()
72 x += weights[i] * points[i].x; in fitLine2D_wods()
73 y += weights[i] * points[i].y; in fitLine2D_wods()
74 x2 += weights[i] * points[i].x * points[i].x; in fitLine2D_wods()
75 y2 += weights[i] * points[i].y * points[i].y; in fitLine2D_wods()
[all …]
/external/chromium-trace/catapult/third_party/flot/
Djquery.flot.errorbars.js68 points: { property
77 if (!series.points.errorbars)
86 var errors = series.points.errorbars;
90 if (series.points.xerr.asymmetric) {
98 if (series.points.yerr.asymmetric) {
109 var points = series.datapoints.points;
116 var xerr = series.points.xerr,
117 yerr = series.points.yerr;
119 var eb = series.points.errorbars;
123 exl = points[i + 2];
[all …]
Djquery.flot.errorbars.min.js7points:{errorbars:null,xerr:{err:"x",show:null,asymmetric:null,upperCap:null,lowerCap:null,color:n… property
Djquery.flot.fillbetween.min.js7points=datapoints.points,otherps=other.datapoints.pointsize,otherpoints=other.datapoints.points,ne…
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode/
DconfusablesWholeScript.txt26 # Total code points: 7
38 # Total code points: 7
52 # Total code points: 9
64 # Total code points: 7
76 # Total code points: 7
88 # Total code points: 7
100 # Total code points: 7
116 # Total code points: 11
128 # Total code points: 7
140 # Total code points: 7
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/unicode/
DconfusablesWholeScript.txt26 # Total code points: 7
38 # Total code points: 7
52 # Total code points: 9
64 # Total code points: 7
76 # Total code points: 7
88 # Total code points: 7
100 # Total code points: 7
116 # Total code points: 11
128 # Total code points: 7
140 # Total code points: 7
[all …]
/external/icu/icu4c/source/data/unidata/
DconfusablesWholeScript.txt26 # Total code points: 7
38 # Total code points: 7
52 # Total code points: 9
64 # Total code points: 7
76 # Total code points: 7
88 # Total code points: 7
100 # Total code points: 7
116 # Total code points: 11
128 # Total code points: 7
140 # Total code points: 7
[all …]
/external/skia/tests/
DPathCoverageTest.cpp39 static inline int estimate_distance(const SkPoint points[]) { in estimate_distance() argument
40 return cheap_distance(points[1].fX * 2 - points[2].fX - points[0].fX, in estimate_distance()
41 points[1].fY * 2 - points[2].fY - points[0].fY); in estimate_distance()
44 static inline SkScalar compute_distance(const SkPoint points[]) { in compute_distance() argument
45 return points[1].distanceToLineSegmentBetween(points[0], points[2]); in compute_distance()
69 static uint32_t quadraticPointCount_EE(const SkPoint points[]) { in quadraticPointCount_EE() argument
70 int distance = estimate_distance(points); in quadraticPointCount_EE()
74 static uint32_t quadraticPointCount_EC(const SkPoint points[], SkScalar tol) { in quadraticPointCount_EC() argument
75 int distance = estimate_distance(points); in quadraticPointCount_EC()
79 static uint32_t quadraticPointCount_CE(const SkPoint points[]) { in quadraticPointCount_CE() argument
[all …]
/external/autotest/client/site_tests/firmware_TouchMTB/geometry/
Dtwo_farthest_clusters.py18 def get_two_farthest_points(points): argument
24 if len(points) <= 1:
25 return points
28 for p1 in points:
29 for p2 in points:
38 def get_two_farthest_clusters(points): argument
49 if len(points) <= 1:
50 return (points, [])
52 fp1, fp2 = get_two_farthest_points(points)
58 for p in points:
[all …]
/external/skia/src/utils/
DSkParsePath.cpp81 SkPoint points[3]; in FromSVGString() local
113 data = find_points(data, points, 1, relative, &c); in FromSVGString()
114 path.moveTo(points[0]); in FromSVGString()
117 c = points[0]; in FromSVGString()
120 data = find_points(data, points, 1, relative, &c); in FromSVGString()
121 path.lineTo(points[0]); in FromSVGString()
122 c = points[0]; in FromSVGString()
137 data = find_points(data, points, 3, relative, &c); in FromSVGString()
140 data = find_points(data, &points[1], 2, relative, &c); in FromSVGString()
141 points[0] = c; in FromSVGString()
[all …]
/external/opencv3/modules/features2d/test/
Dtest_nearestneighbors.cpp69 virtual int findNeighbors( Mat& points, Mat& neighbors ) = 0;
93 Mat points( pointsCount, dims, CV_32FC1 ); in checkFind() local
102 points.at<float>(pi, d) = data.at<float>(fi, d) + rng.uniform(0.0f, 1.0f) * noise; in checkFind()
105 code = findNeighbors( points, results ); in checkFind()
167 int knnSearch( Mat& points, Mat& neighbors );
168 int radiusSearch( Mat& points, Mat& neighbors );
178 int CV_FlannTest::knnSearch( Mat& points, Mat& neighbors ) in knnSearch() argument
180 Mat dist( points.rows, neighbors.cols, CV_32FC1); in knnSearch()
184 index->knnSearch( points, neighbors, dist, knn, SearchParams() ); in knnSearch()
188 for( int i = 0; i < points.rows; i++ ) in knnSearch()
[all …]
/external/opencv/cv/src/
Dcvrotcalipers.cpp93 icvRotatingCalipers( CvPoint2D32f* points, int n, int mode, float* out ) in icvRotatingCalipers() argument
113 CvPoint2D32f pt0 = points[0]; in icvRotatingCalipers()
134 CvPoint2D32f pt = points[(i+1) & (i+1 < n ? -1 : 0)]; in icvRotatingCalipers()
250 float dx = points[seq[opposite_el]].x - points[seq[main_element]].x; in icvRotatingCalipers()
251 float dy = points[seq[opposite_el]].y - points[seq[main_element]].y; in icvRotatingCalipers()
271 float dx = points[seq[1]].x - points[seq[3]].x; in icvRotatingCalipers()
272 float dy = points[seq[1]].y - points[seq[3]].y; in icvRotatingCalipers()
278 dx = points[seq[2]].x - points[seq[0]].x; in icvRotatingCalipers()
279 dy = points[seq[2]].y - points[seq[0]].y; in icvRotatingCalipers()
317 float C1 = A1 * points[((int *) buf)[0]].x + points[((int *) buf)[0]].y * B1; in icvRotatingCalipers()
[all …]
Dcvlinefit.cpp46 icvFitLine2D_wods( CvPoint2D32f * points, int _count, float *weights, float *line ) in icvFitLine2D_wods() argument
60 x += points[i].x; in icvFitLine2D_wods()
61 y += points[i].y; in icvFitLine2D_wods()
62 x2 += points[i].x * points[i].x; in icvFitLine2D_wods()
63 y2 += points[i].y * points[i].y; in icvFitLine2D_wods()
64 xy += points[i].x * points[i].y; in icvFitLine2D_wods()
72 x += weights[i] * points[i].x; in icvFitLine2D_wods()
73 y += weights[i] * points[i].y; in icvFitLine2D_wods()
74 x2 += weights[i] * points[i].x * points[i].x; in icvFitLine2D_wods()
75 y2 += weights[i] * points[i].y * points[i].y; in icvFitLine2D_wods()
[all …]
/external/opencv3/modules/features2d/perf/
Dperf_orb.cpp26 vector<KeyPoint> points; in PERF_TEST_P() local
28 TEST_CYCLE() detector->detect(frame, points, mask); in PERF_TEST_P()
30 sort(points.begin(), points.end(), comparators::KeypointGreater()); in PERF_TEST_P()
31 SANITY_CHECK_KEYPOINTS(points, 1e-5); in PERF_TEST_P()
46 vector<KeyPoint> points; in PERF_TEST_P() local
47 detector->detect(frame, points, mask); in PERF_TEST_P()
48 sort(points.begin(), points.end(), comparators::KeypointGreater()); in PERF_TEST_P()
52 TEST_CYCLE() detector->compute(frame, points, descriptors); in PERF_TEST_P()
69 vector<KeyPoint> points; in PERF_TEST_P() local
72 TEST_CYCLE() detector->detectAndCompute(frame, mask, points, descriptors, false); in PERF_TEST_P()
[all …]
/external/skia/src/svg/parser/
DSkSVGLinearGradient.cpp31 SkString points; in DEFINE_SVG_INFO() local
32 points.appendUnichar('['); in DEFINE_SVG_INFO()
33 points.append(f_x1); in DEFINE_SVG_INFO()
34 points.appendUnichar(','); in DEFINE_SVG_INFO()
35 points.append(f_y1); in DEFINE_SVG_INFO()
36 points.appendUnichar(','); in DEFINE_SVG_INFO()
37 points.append(f_x2); in DEFINE_SVG_INFO()
38 points.appendUnichar(','); in DEFINE_SVG_INFO()
39 points.append(f_y2); in DEFINE_SVG_INFO()
40 points.appendUnichar(']'); in DEFINE_SVG_INFO()
[all …]
/external/opencv3/modules/features2d/perf/opencl/
Dperf_orb.cpp26 vector<KeyPoint> points; in OCL_PERF_TEST_P() local
28 OCL_TEST_CYCLE() detector->detect(frame, points, mask); in OCL_PERF_TEST_P()
30 std::sort(points.begin(), points.end(), comparators::KeypointGreater()); in OCL_PERF_TEST_P()
31 SANITY_CHECK_KEYPOINTS(points, 1e-5); in OCL_PERF_TEST_P()
48 vector<KeyPoint> points; in OCL_PERF_TEST_P() local
49 detector->detect(frame, points, mask); in OCL_PERF_TEST_P()
50 std::sort(points.begin(), points.end(), comparators::KeypointGreater()); in OCL_PERF_TEST_P()
54 OCL_TEST_CYCLE() detector->compute(frame, points, descriptors); in OCL_PERF_TEST_P()
79 vector<KeyPoint> points; in OCL_PERF_TEST_P() local
82 OCL_TEST_CYCLE() detector->detectAndCompute(frame, mask, points, descriptors, false); in OCL_PERF_TEST_P()
[all …]

12345678910>>...37