13 #ifndef mitkPlaneFit_h
14 #define mitkPlaneFit_h
66 using mitk::GeometryDataSource::SetInput;
118 mitk::TimeGeometry::Pointer m_TimeGeometry;
120 std::vector<mitk::PlaneGeometry::Pointer> m_Planes;
123 std::vector<mitk::Point3D> m_Centroids;
126 std::vector<mitk::Vector3D> m_PlaneVectors;
#define MITKALGORITHMSEXT_EXPORT
Superclass of all classes generating GeometryData as output.
Fits a plane to a point set using least-squares orthogonal distance regression.
virtual const mitk::Vector3D & GetPlaneNormal(int t=0) const
Get the normal vector of the best-fit plane.
mitkClassMacro(PlaneFit, GeometryDataSource)
void CalculateCentroid(int t=0)
void GenerateData() override
Compute the best-fit plane for each time step.
virtual void SetInput(const mitk::PointSet *ps)
void GenerateOutputInformation() override
Initialize the output information (time geometry, plane geometries).
virtual mitk::PlaneGeometry::Pointer GetPlaneGeometry(int t=0)
Get the PlaneGeometry representing the best-fit plane.
mitk::PointSet::PointDataIterator PointDataIterator
const mitk::PointSet * GetInput()
Get the input point set.
virtual const mitk::Point3D & GetCentroid(int t=0) const
Get the centroid (center of gravity) of the point set.
void InitializePlane(int t=0)
mitk::PointSet::PointDataType PointDataType
void ProcessPointSet(int t=0)
Data structure which stores a set of points.
DataType::PointDataContainerIterator PointDataIterator
Find image slices visible on a given plane.
Data associated with each point in the PointSet.