7 #ifndef POINTOBSERVATIONBUFFER_H 8 #define POINTOBSERVATIONBUFFER_H 22 #include "vnl/vnl_matrix.h" 23 #include "vnl/algo/vnl_symmetric_eigensystem.h" 24 #include "vnl/algo/vnl_svd.h" 30 typedef std::vector<PointObservation*> PointObservationVector;
31 PointObservationVector observations;
38 PointObservationVector::size_type
Size()
const;
44 void Translate( std::vector<double> translation );
50 vnl_matrix<double>*
TranslationalRegistration( std::vector<double> toCentroid, std::vector<double> fromCentroid, vnl_matrix<double>* rotation );
52 std::vector<PointObservationBuffer*>
ExtractLinearObjects(
int collectionFrames,
double extractionThreshold, std::vector<int>* dof );
58 std::vector<double> CalculateCentroid();
59 vnl_matrix<double>* CovarianceMatrix( std::vector<double> centroid );
void Filter(LinearObject *object, int filterWidth)
vnl_matrix< double > * SphericalRegistration(PointObservationBuffer *fromPoints)
LinearObject * LeastSquaresLinearObject(int dof)
std::string ToXMLString() const
void AddObservation(PointObservation *newObservation)
PointObservation * GetObservation(int index) const
void Translate(std::vector< double > translation)
void FromXMLElement(vtkXMLDataElement *element)
PointObservationVector::size_type Size() const
std::vector< PointObservationBuffer * > ExtractLinearObjects(int collectionFrames, double extractionThreshold, std::vector< int > *dof)
vnl_matrix< double > * TranslationalRegistration(std::vector< double > toCentroid, std::vector< double > fromCentroid, vnl_matrix< double > *rotation)
~PointObservationBuffer()