Home
last modified time | relevance | path

Searched refs:nr_roots (Results 1 – 4 of 4) sorted by relevance

/aosp12/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_poly.cpp53 *nr_roots=3; in db_SolveCubic()
74 *nr_roots=1; in db_SolveCubic()
82 *nr_roots=2; in db_SolveCubic()
115 roots[*nr_roots]=0.0; in db_SolveQuartic()
116 *nr_roots+=1; in db_SolveQuartic()
160 else *nr_roots=0; in db_SolveQuartic()
162 else *nr_roots=0; in db_SolveQuartic()
187 roots[*nr_roots]=0.0; in db_SolveQuarticForced()
188 *nr_roots+=1; in db_SolveQuarticForced()
231 *nr_roots+=addroots; in db_SolveQuarticForced()
[all …]
H A Ddb_utilities_poly.h39 inline void db_SolveQuadratic(double *roots,int *nr_roots,double a,double b,double c) in db_SolveQuadratic() argument
47 if(b==0.0) *nr_roots=0; in db_SolveQuadratic()
51 *nr_roots=1; in db_SolveQuadratic()
59 *nr_roots=2; in db_SolveQuadratic()
65 if(q==0.0) *nr_roots=1; in db_SolveQuadratic()
68 else *nr_roots=0; in db_SolveQuadratic()
79 DB_API void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d);
84 DB_API void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double …
284 inline void db_RealEigenvalues4x4(double lambda[4],int *nr_roots,const double A[16],int forced=0)
289 if(forced) db_SolveQuarticForced(lambda,nr_roots,p[4],p[3],p[2],p[1],p[0]);
[all …]
H A Ddb_framestitching.cpp32 int nr_roots; in db_RotationFromMOuterProductSum() local
50 db_RealEigenvalues4x4(lambda,&nr_roots,N,1); in db_RotationFromMOuterProductSum()
51 if(nr_roots) in db_RotationFromMOuterProductSum()
54 if(nr_roots>=2) in db_RotationFromMOuterProductSum()
57 if(nr_roots>=3) in db_RotationFromMOuterProductSum()
61 if(nr_roots>=4) if(lambda[3]>lambda_max) lambda_max=lambda[3]; in db_RotationFromMOuterProductSum()
H A Ddb_image_homography.cpp120 int nr_roots,i,j; in db_CommonFocalLengthFromRotation_2Point() local
162 db_SolveCubic(roots,&nr_roots,p9[4],p9[3],p9[2],p9[1]); in db_CommonFocalLengthFromRotation_2Point()
164 for(j=0,i=0;i<nr_roots;i++) in db_CommonFocalLengthFromRotation_2Point()