17 #ifndef _MITKUNSTRUCTUREDGRIDCLUSTERINGFILTER_h__
18 #define _MITKUNSTRUCTUREDGRIDCLUSTERINGFILTER_h__
26 #include <vtkIdList.h>
27 #include <vtkPoints.h>
28 #include <vtkSmartPointer.h>
70 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
73 itkSetMacro(
eps,
double) itkGetMacro(
eps,
double)
76 itkSetMacro(MinPts,
int) itkGetMacro(MinPts,
int)
79 itkSetMacro(Meshing,
bool)
82 virtual std::vector<mitk::UnstructuredGrid::Pointer> GetAllClusters();
85 virtual int GetNumberOfFoundClusters();
95 virtual void GenerateOutputInformation();
98 virtual void GenerateData();
102 void ExpandCluster(
int id, vtkIdList *pointIDs, vtkPoints *cluster, vtkPoints *inpPoints);
108 std::vector<vtkSmartPointer<vtkPoints>> m_Clusters;
111 std::vector<vtkSmartPointer<vtkDoubleArray>> m_DistanceArrays;
129 #endif //_MITKUNSTRUCTUREDGRIDCLUSTERINGFILTER_h__
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
#define MITKALGORITHMSEXT_EXPORT
#define mitkClassMacro(className, SuperClassName)
This filter uses the DBSCAN algorithm for clustering an mitk::UnstructuredGrid. "MinPts" defines the ...
MITKCORE_EXPORT const ScalarType eps