Searched defs:x1 (Results 1 - 20 of 20) sorted by relevance

/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_image_homography.h37 \param x1 image 1 point 1
47 double x1[3],double x2[3],double x3[3],double x4[3],
54 \param x1 image 1 point 1
62 double x1[3],double x2[3],double x3[3],
69 \param x1 image 1 point 1
77 double x1[3],double x2[3],
84 x[0]=x1;
96 is required, although it could be desirable to keep x1,x2,xp1 and xp2 of reasonable magnitude.
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],
74 db_StitchCameraRotation_2Points(double R[9], double x1[3],double x2[3], double xp1[3],double xp2[3]) argument
H A Ddb_metrics.h121 double x0,x1,x2,mult; local
125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2];
128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult));
135 double x0,x1,x2,mult; local
139 x1=H[3]*x[0]+H[4]*x[1]+H[5];
142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult));
174 [x0 x1 1 0 0 0 0 0 0]
175 [ 0 0 0 x0 x1 1 0 0 0]
176 [ 0 0 0 0 0 0 x0 x1 1]
178 [-x0/zh -x1/z
[all...]
H A Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3],
86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1);
95 double x1[3],double x2[3],double x3[3],
101 db_SAffineImagePointPointConstraints(c ,c+7 ,xp1,x1);
114 inline void db_CommonFocalLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double x2[3],double xp1[3],double xp2[3],int signed_disambiguation=1) argument
129 m=db_SafeReciprocal(x1[2]);
130 ax=x1[0]*m;
131 ay=x1[1]*m;
177 int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],double xp1[3],double xp2[3],double xp3[3],double *f,int signed_disambiguation) argument
186 db_CommonFocalLengthFromRotation_2Point(fsol,&nr_sols,x1,x
79 db_StitchProjective2D_4Points(double H[9], double x1[3],double x2[3],double x3[3],double x4[3], double xp1[3],double xp2[3],double xp3[3],double xp4[3]) argument
94 db_StitchAffine2D_3Points(double H[9], double x1[3],double x2[3],double x3[3], double xp1[3],double xp2[3],double xp3[3]) argument
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_image_homography.h37 \param x1 image 1 point 1
47 double x1[3],double x2[3],double x3[3],double x4[3],
54 \param x1 image 1 point 1
62 double x1[3],double x2[3],double x3[3],
69 \param x1 image 1 point 1
77 double x1[3],double x2[3],
84 x[0]=x1;
96 is required, although it could be desirable to keep x1,x2,xp1 and xp2 of reasonable magnitude.
100 DB_API int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],
74 db_StitchCameraRotation_2Points(double R[9], double x1[3],double x2[3], double xp1[3],double xp2[3]) argument
H A Ddb_metrics.h121 double x0,x1,x2,mult; local
125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2];
128 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult));
135 double x0,x1,x2,mult; local
139 x1=H[3]*x[0]+H[4]*x[1]+H[5];
142 sd=db_sqr((y[0]-x0*mult))+db_sqr((y[1]-x1*mult));
174 [x0 x1 1 0 0 0 0 0 0]
175 [ 0 0 0 x0 x1 1 0 0 0]
176 [ 0 0 0 0 0 0 x0 x1 1]
178 [-x0/zh -x1/z
[all...]
H A Ddb_image_homography.cpp80 double x1[3],double x2[3],double x3[3],double x4[3],
86 db_SProjImagePointPointConstraints(c ,c+9 ,xp1,x1);
95 double x1[3],double x2[3],double x3[3],
101 db_SAffineImagePointPointConstraints(c ,c+7 ,xp1,x1);
114 inline void db_CommonFocalLengthFromRotation_2Point(double fsol[3],int *nr_sols,double x1[3],double x2[3],double xp1[3],double xp2[3],int signed_disambiguation=1) argument
129 m=db_SafeReciprocal(x1[2]);
130 ax=x1[0]*m;
131 ay=x1[1]*m;
177 int db_StitchRotationCommonFocalLength_3Points(double H[9],double x1[3],double x2[3],double x3[3],double xp1[3],double xp2[3],double xp3[3],double *f,int signed_disambiguation) argument
186 db_CommonFocalLengthFromRotation_2Point(fsol,&nr_sols,x1,x
79 db_StitchProjective2D_4Points(double H[9], double x1[3],double x2[3],double x3[3],double x4[3], double xp1[3],double xp2[3],double xp3[3],double xp4[3]) argument
94 db_StitchAffine2D_3Points(double H[9], double x1[3],double x2[3],double x3[3], double xp1[3],double xp2[3],double xp3[3]) argument
[all...]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
70 centX = (x0 + x1 + x2) / 3.0;
76 if (x0 == x1)
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
87 if (x0 == x1)
93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a
96 else if (x1 == x2)
98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3
109 // Calculate the line that goes through x1,y1 and is perpendicular to
112 double b2 = y1 - m2 * x1;
129 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double &centX, double &centY) argument
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
174 if(x0 < xLeftCorners[0] || x1 < xLeftCorners[1]) // If either of the left corners is lower
177 xLeftCorners[1] = x1;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
1001 int x1 = (xx >= 0.0) ? (int) xx : (int) floor(xx); local
1006 if(inSegment(x1, sptr->width, BORDER-1) &&
1009 double xfrac = xx - x1;
1012 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac));
1016 wt1 * ciCalc(suptr, x1, y
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DGeometry.h65 inline void FindTriangleCentroid(double x0, double y0, double x1, double y1, argument
70 centX = (x0 + x1 + x2) / 3.0;
76 if (x0 == x1)
82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b
87 if (x0 == x1)
93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a
96 else if (x1 == x2)
98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3
109 // Calculate the line that goes through x1,y1 and is perpendicular to
112 double b2 = y1 - m2 * x1;
129 FindQuadCentroid(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3, double &centX, double &centY) argument
[all...]
H A DBlend.cpp144 double z, x0, y0, x1, y1, x2, y2, x3, y3; local
170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1);
174 if(x0 < xLeftCorners[0] || x1 < xLeftCorners[1]) // If either of the left corners is lower
177 xLeftCorners[1] = x1;
200 FindQuadCentroid(x0, y0, x1, y1, x2, y2, x3, y3, csite->getVCenter().x, csite->getVCenter().y);
981 int x1 = (xx >= 0.0) ? (int) xx : (int) floor(xx); local
986 if(inSegment(x1, sptr->width, BORDER-1) &&
989 double xfrac = xx - x1;
992 wt1 * ciCalc(sptr, x1, y1, xfrac, yfrac));
996 wt1 * ciCalc(suptr, x1, y
[all...]
/packages/inputmethods/LatinIME/native/jni/src/
H A Dgeometry_utils.h31 static inline float getSquaredDistanceFloat(float x1, float y1, float x2, float y2) { argument
32 const float deltaX = x1 - x2;
37 static inline float getDistanceFloat(float x1, float y1, float x2, float y2) { argument
38 return hypotf(x1 - x2, y1 - y2);
41 static inline int getDistanceInt(int x1, int y1, int x2, int y2) { argument
42 return static_cast<int>(getDistanceFloat(static_cast<float>(x1), static_cast<float>(y1),
46 static inline float getAngle(int x1, int y1, int x2, int y2) { argument
47 const int dx = x1 - x2;
64 float x, float y, float x1, float y1, float x2, float y2, bool extend) {
65 const float ray1x = x - x1;
63 pointToLineSegSquaredDistanceFloat( float x, float y, float x1, float y1, float x2, float y2, bool extend) argument
[all...]
H A Dproximity_info.cpp130 static inline float getNormalizedSquaredDistanceFloat(float x1, float y1, float x2, float y2, argument
132 const float deltaX = x1 - x2;
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
H A DPointCloud.java73 public void setX(float x1) { argument
74 x = x1;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLCanvas.java72 // Draws a line using the specified paint from (x1, y1) to (x2, y2).
74 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint); argument
76 // Draws a rectangle using the specified paint from (x1, y1) to (x2, y2).
78 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint); argument
H A DGLCanvasImpl.java56 // x1, y1, x2, y2.
192 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) { argument
199 translate(x1, y1);
200 scale(x2 - x1, y2 - y1, 1);
315 // {x1', y1', x2', y2'} are stored in mMapPointsBuffer and also returned.
316 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { argument
319 // Multiply m and (x1 y1 0 1) to produce (x3 y3 z3 w3). z3 is unused.
320 float x3 = m[0] * x1 + m[4] * y1 + m[12];
321 float y3 = m[1] * x1 + m[5] * y1 + m[13];
322 float w3 = m[3] * x1
[all...]
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLCanvasStub.java51 public void drawLine(float x1, float y1, float x2, float y2, GLPaint paint) {} argument
52 public void drawRect(float x1, float y1, float x2, float y2, GLPaint paint) {} argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DGestureStroke.java334 private static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
335 final int dx = x1 - x2;
/packages/apps/Camera/jni/feature_stab/src/dbreg/
H A Ddbreg.h554 double x0,x1,x2,mult; local
558 x1=H[3]*x[0]+H[4]*x[1]+H[5];
561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult);
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
H A Ddbreg.h554 double x0,x1,x2,mult; local
558 x1=H[3]*x[0]+H[4]*x[1]+H[5];
561 sd=(y[0]-x0*mult)*(y[0]-x0*mult)+(y[1]-x1*mult)*(y[1]-x1*mult);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DPointerTracker.java662 static int getDistance(final int x1, final int y1, final int x2, final int y2) { argument
663 return (int)Math.hypot(x1 - x2, y1 - y2);

Completed in 2247 milliseconds