Searched refs:centroid (Results 1 - 25 of 51) sorted by relevance

123

/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/
H A DEuclideanIntegerPoint.java62 int[] centroid = new int[getPoint().length];
64 for (int i = 0; i < centroid.length; i++) {
65 centroid[i] += p.getPoint()[i];
68 for (int i = 0; i < centroid.length; i++) {
69 centroid[i] /= points.size();
71 return new EuclideanIntegerPoint(centroid);
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/
H A DNelderMead.java88 // compute the centroid of the best vertices
90 final double[] centroid = new double[n];
94 centroid[j] += x[j];
99 centroid[j] *= scaling;
105 xR[j] = centroid[j] + rho * (centroid[j] - xWorst[j]);
120 xE[j] = centroid[j] + khi * (xR[j] - centroid[j]);
139 xC[j] = centroid[j] + gamma * (xR[j] - centroid[
[all...]
/external/ImageMagick/MagickCore/
H A Dvision.h37 centroid; member in struct:_CCObjectInfo
H A Dvision.c404 object[id].centroid.x+=x;
405 object[id].centroid.y+=y;
445 object[i].centroid.x=object[i].centroid.x/object[i].area;
446 object[i].centroid.y=object[i].centroid.y/object[i].area;
628 object[i].centroid.x=0;
629 object[i].centroid.y=0;
664 object[id].centroid.x+=x;
665 object[id].centroid
[all...]
H A Dstatistic.c1505 centroid[MaxPixelChannels+1];
1521 (void) ResetMagickMemory(centroid,0,sizeof(centroid));
1543 Compute center of mass (centroid).
1579 Compute center of mass (centroid).
1584 centroid[channel].x=(double) image->columns/2.0;
1585 centroid[channel].y=(double) image->rows/2.0;
1589 centroid[channel].x=M10[channel]/M00[channel];
1590 centroid[channel].y=M01[channel]/M00[channel];
1624 M11[channel]+=(x-centroid[channe
1497 centroid[MaxPixelChannels+1]; local
[all...]
H A Dstatistic.h55 centroid, member in struct:_ChannelMoments
/external/mesa3d/src/gallium/drivers/r600/
H A Dr600_shader.h35 boolean centroid; member in struct:r600_shader_io
/external/libgdx/gdx/src/com/badlogic/gdx/math/
H A DGeometryUtils.java105 static public Vector2 triangleCentroid (float x1, float y1, float x2, float y2, float x3, float y3, Vector2 centroid) { argument
106 centroid.x = (x1 + x2 + x3) / 3;
107 centroid.y = (y1 + y2 + y3) / 3;
108 return centroid;
130 Vector2 centroid) {
135 centroid.x = avgX1 - (avgX1 - avgX2) / 2;
136 centroid.y = avgY1 - (avgY1 - avgY2) / 2;
137 return centroid;
140 /** Returns the centroid for the specified non-self-intersecting polygon. */
141 static public Vector2 polygonCentroid (float[] polygon, int offset, int count, Vector2 centroid) { argument
129 quadrilateralCentroid(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, Vector2 centroid) argument
[all...]
H A DDelaunayTriangulator.java39 private final Vector2 centroid = new Vector2(); field in class:DelaunayTriangulator
335 /** Removes all triangles with a centroid outside the specified hull, which may be concave. Note some triangulations may have
336 * triangles whose centroid is inside the hull but a portion is outside. */
344 centroid);
345 if (!Intersector.isPointInPolygon(hull, offset, count, centroid.x, centroid.y)) {
/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dradeonsi_shader.h37 bool centroid; member in struct:si_shader_io
/external/libvorbis/vq/
H A Dvqgen.h30 int centroid; member in struct:vqgen
72 float *(*weight)(vqgen *,float *),int centroid);
H A Dvqgen.c242 float *(*weight)(vqgen *,float *),int centroid){
245 v->centroid=centroid;
502 if(v->centroid==0){
514 /* centroid */
540 if(v->centroid==0){
240 vqgen_init(vqgen *v,int elements,int aux,int entries,float mindist, float (*metric)(vqgen *,float *, float *), float *(*weight)(vqgen *,float *),int centroid) argument
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/
H A DbtCompoundFromGimpact.h52 btVector3 centroid = (v0+v1+v2)/3; local
55 btVector3 rayFrom = centroid;
56 btVector3 rayTo = centroid-normal*m_depth;
66 //gDebugDraw.drawLine(tr(centroid),tr(centroid+normal),btVector3(1,0,0));
/external/mesa3d/src/gallium/drivers/nv50/codegen/
H A Dnv50_ir_driver.h46 unsigned centroid : 1; member in struct:nv50_ir_varying
/external/opencv3/modules/imgproc/src/
H A Dphasecorr.cpp421 Point2d centroid; local
453 centroid.x += (double)x*dataIn[x];
454 centroid.y += (double)y*dataIn[x];
469 centroid.x += (double)x*dataIn[x];
470 centroid.y += (double)y*dataIn[x];
483 centroid.x /= sumIntensity;
484 centroid.y /= sumIntensity;
486 return centroid;
H A Dconnectedcomponents.cpp111 double *centroid = &centroidsv.at<double>(l, 0); local
113 centroid[0] = double(integral.x) / area;
114 centroid[1] = double(integral.y) / area;
/external/mesa3d/src/glsl/
H A Dir_set_program_inouts.cpp94 if (var->centroid)
H A Dir_clone.cpp52 var->centroid = this->centroid;
H A Dlinker.cpp559 if (existing->centroid != var->centroid) {
561 "mismatching centroid qualifiers\n",
704 if (input->centroid != output->centroid) {
706 "%s shader output `%s' %s centroid qualifier, "
707 "but %s shader input %s centroid qualifier\n",
710 (output->centroid) ? "has" : "lacks",
712 (input->centroid) ? "has" : "lacks");
H A Dir.cpp1486 : max_array_access(0), read_only(false), centroid(false), invariant(false),
1577 a->centroid != b->centroid) {
/external/ImageMagick/coders/
H A Ddds.c1437 centroid;
1446 VectorInit3(centroid,0.0f);
1451 centroid.x += (points[i].x * points[i].w);
1452 centroid.y += (points[i].y * points[i].w);
1453 centroid.z += (points[i].z * points[i].w);
1458 centroid.x /= total;
1459 centroid.y /= total;
1460 centroid.z /= total;
1472 a.x = points[i].x - centroid.x;
1473 a.y = points[i].y - centroid
1435 centroid; local
[all...]
/external/ImageMagick/www/api/
H A Dfeature.php176 <p>MeanShiftImage() delineate arbitrarily shaped clusters in the image. For each pixel, it visits all the pixels in the neighborhood specified by the window centered at the pixel and excludes those that are outside the radius=(window-1)/2 surrounding the pixel. From those pixels, it finds those that are within the specified color distance from the current mean, and computes a new x,y centroid from those coordinates and a new mean. This new x,y centroid is used as the center for a new window. This process iterates until it converges and the final mean is replaces the (original window center) pixel value. It repeats this process for the next pixel, etc., until it processes all pixels in the image. Results are typically better with colorspaces other than sRGB. We recommend YIQ, YUV or YCbCr.</p>
/external/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_ureg.c103 unsigned char centroid; member in struct:ureg_program::__anon13913
324 unsigned centroid)
340 ureg->fs_input[i].centroid = centroid;
1237 unsigned centroid)
1256 out[2].decl_interp.Centroid = centroid;
1465 ureg->fs_input[i].centroid);
319 ureg_DECL_fs_input_cyl_centroid(struct ureg_program *ureg, unsigned semantic_name, unsigned semantic_index, unsigned interp_mode, unsigned cylindrical_wrap, unsigned centroid) argument
1230 emit_decl_fs(struct ureg_program *ureg, unsigned file, unsigned index, unsigned semantic_name, unsigned semantic_index, unsigned interpolate, unsigned cylindrical_wrap, unsigned centroid) argument
/external/ImageMagick/Magick++/lib/
H A DStatistic.cpp105 _centroidX(channelMoments_->centroid.x),
106 _centroidY(channelMoments_->centroid.y),
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/
H A DbtCollisionWorld.cpp1356 btVector3 centroid(0,0,0);
1364 centroid+=poly->m_vertices[curVert];
1369 centroid*= btScalar(1.f)/btScalar(numVerts);
1374 getDebugDrawer()->drawLine(worldTransform*centroid,worldTransform*(centroid+faceNormal),normalColor);

Completed in 774 milliseconds

123