Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::PointCloudScoringFilter Class Reference

Scores an UnstructuredGrid as good as one matches to the other. More...

#include <mitkPointCloudScoringFilter.h>

Inheritance diagram for mitk::PointCloudScoringFilter:
Collaboration diagram for mitk::PointCloudScoringFilter:

Public Types

typedef std::pair< int, double > ScorePair
 
- Public Types inherited from mitk::UnstructuredGridSource
typedef mitk::UnstructuredGrid OutputType
 
- Public Types inherited from mitk::BaseDataSource
typedef BaseDataSource Self
 
typedef itk::ProcessObject Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef BaseData OutputType
 
typedef itk::DataObject::DataObjectIdentifierType DataObjectIdentifierType
 

Public Member Functions

 mitkClassMacro (PointCloudScoringFilter, UnstructuredGridToUnstructuredGridFilter) static Pointer New()
 
virtual int GetNumberOfOutpPoints ()
 
virtual std::vector< ScorePairGetFilteredScores ()
 
- Public Member Functions inherited from mitk::UnstructuredGridToUnstructuredGridFilter
 mitkClassMacro (UnstructuredGridToUnstructuredGridFilter, UnstructuredGridSource) static Pointer New()
 
Pointer Clone () const
 
const mitk::UnstructuredGridGetInput (void)
 
virtual const mitk::UnstructuredGridGetInput (unsigned int idx)
 
virtual void SetInput (const UnstructuredGrid *grid)
 
virtual void SetInput (unsigned int idx, const UnstructuredGrid *grid)
 
virtual void CreateOutputsForAllInputs (unsigned int idx)
 
- Public Member Functions inherited from mitk::UnstructuredGridSource
 mitkClassMacro (UnstructuredGridSource, BaseDataSource) static Pointer New()
 
Pointer Clone () const
 
virtual mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
virtual itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
- Public Member Functions inherited from mitk::BaseDataSource
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
OutputTypeGetOutput ()
 
const OutputTypeGetOutput () const
 
OutputTypeGetOutput (DataObjectPointerArraySizeType idx)
 
const OutputTypeGetOutput (DataObjectPointerArraySizeType idx) const
 
virtual void GraftOutput (OutputType *output)
 Graft the specified BaseData onto this BaseDataSource's output. More...
 
virtual void GraftOutput (const DataObjectIdentifierType &key, OutputType *output)
 
virtual void GraftNthOutput (unsigned int idx, OutputType *output)
 Graft the specified base data object onto this BaseDataSource's idx'th output. More...
 
bool Updating () const
 Access itk::ProcessObject::m_Updating. More...
 

Protected Member Functions

virtual void GenerateData () override
 
virtual void GenerateOutputInformation () override
 
 PointCloudScoringFilter ()
 
virtual ~PointCloudScoringFilter ()
 
- Protected Member Functions inherited from mitk::UnstructuredGridToUnstructuredGridFilter
 UnstructuredGridToUnstructuredGridFilter ()
 
virtual ~UnstructuredGridToUnstructuredGridFilter ()
 
- Protected Member Functions inherited from mitk::UnstructuredGridSource
 UnstructuredGridSource ()
 
virtual ~UnstructuredGridSource ()
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
virtual ~BaseDataSource ()
 

Additional Inherited Members

- Static Public Member Functions inherited from mitk::BaseDataSource
static const char * GetStaticNameOfClass ()
 
- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 

Detailed Description

Scores an UnstructuredGrid as good as one matches to the other.

The result UnstructureGrid of the filter are the points where the distance to the closest point of the other UnstructuredGrid is higher than the average distance from all points to their closest neighbours of the other UnstructuredGrid. The second input is the UnstructuredGrid, which you want to score. All Points of the output UnstructuredGrid are from the second input.

Definition at line 37 of file mitkPointCloudScoringFilter.h.

Member Typedef Documentation

typedef std::pair<int, double> mitk::PointCloudScoringFilter::ScorePair

Definition at line 40 of file mitkPointCloudScoringFilter.h.

Constructor & Destructor Documentation

mitk::PointCloudScoringFilter::PointCloudScoringFilter ( )
protected

Constructor

Definition at line 29 of file mitkPointCloudScoringFilter.cpp.

mitk::PointCloudScoringFilter::~PointCloudScoringFilter ( )
protectedvirtual

Destructor

Definition at line 34 of file mitkPointCloudScoringFilter.cpp.

Member Function Documentation

void mitk::PointCloudScoringFilter::GenerateData ( )
overrideprotectedvirtual

is called by the Update() method

Definition at line 38 of file mitkPointCloudScoringFilter.cpp.

References MITK_ERROR, mitk::UnstructuredGrid::New(), and mitk::New().

void mitk::PointCloudScoringFilter::GenerateOutputInformation ( void  )
overrideprotectedvirtual

Defines the output

Reimplemented from mitk::UnstructuredGridToUnstructuredGridFilter.

Definition at line 183 of file mitkPointCloudScoringFilter.cpp.

virtual std::vector<ScorePair> mitk::PointCloudScoringFilter::GetFilteredScores ( )
virtual

A vector in which the point IDs and their distance to their neighbours is stored

virtual int mitk::PointCloudScoringFilter::GetNumberOfOutpPoints ( )
virtual

Number of Points of the scored UnstructuredGrid. These points are far away from their neighbours

mitk::PointCloudScoringFilter::mitkClassMacro ( PointCloudScoringFilter  ,
UnstructuredGridToUnstructuredGridFilter   
)

The documentation for this class was generated from the following files: