25 AtA =
new NEWMAT::Matrix(3,3);
26 Atb =
new NEWMAT::Matrix(3,1);
38 AtA =
new NEWMAT::Matrix(3,3);
39 Atb =
new NEWMAT::Matrix(3,1);
86 NEWMAT::Matrix AtA_layer(3,1);
92 *
AtA += AtA_layer * AtA_layer.t();
93 *
Atb += AtA_layer * zmea;
103 NEWMAT::Matrix Soln(3,1);
104 Soln =
AtA->i() * (*Atb);
ossimLeastSquaresPlane()
Instantiate as zero surface.
virtual void clear()
Will clear everything and set it up to for another solve.
virtual void addSample(double x, double y, double z_mea)
add a single data sample.
virtual void setLSParams(double pa, double pb, double pc)
bool solveLS()
compute least squares parameter solution - true if succesfull.
ossimLeastSquaresPlane & operator=(const ossimLeastSquaresPlane &)
virtual ~ossimLeastSquaresPlane()
Free internal storage.
virtual bool getLSParms(double &pa, double &pb, double &pc) const
return LS solution parameters.
NEWMAT::Matrix * AtA
Normal system coefficient matrix.
NEWMAT::Matrix * Atb
Normal system RHS vector.
Provide 2D Least Squares Plane model fitting The math model is that of a plane of the form: ...
ossim_uint32 m_numSamples