Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Core::Geometry::EstimateEllipse ( double  value[4],
double &  large,
double &  small,
double &  ori 
)

Definition at line 12 of file EstimateEllipse.h.

00013 {
00014     double xx=0, xy=0, yy=0;
00015     double x;
00016 
00017     xx += value[0];
00018     x = 0.5*value[1]*sqrt(2.);
00019     xy += x;
00020     xx += x;
00021     yy += x;
00022     yy += value[2];
00023     x = 0.5*value[3]*sqrt(2.);
00024     xy -= x;
00025     xx += x;
00026     yy += x;
00027 
00028     double H, D, Ia, Ib;
00029     H = 0.5*(xx+yy);
00030     D = H*H-xx*yy+xy*xy;
00031     Ia = H+sqrt(D);
00032     Ib = H-sqrt(D);
00033     large = 2.*Ia/4.;
00034     small = 2.*Ib/4.;
00035     ori = 0; // this seems to not be computed
00036 }


Generated on Thu Jan 13 09:19:36 2011 for ImpalaSrc by  doxygen 1.5.1