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

Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extract every pixel, with value higher than the threshold, as point. If no threshold is set, every pixel is extracted as a point. More...

#include <mitkImageToUnstructuredGridFilter.h>

Inheritance diagram for mitk::ImageToUnstructuredGridFilter:
Collaboration diagram for mitk::ImageToUnstructuredGridFilter:

Public Member Functions

 mitkClassMacro (ImageToUnstructuredGridFilter, UnstructuredGridSource) static Pointer New()
 
Pointer Clone () const
 
virtual void GenerateData () override
 
virtual void GenerateOutputInformation () override
 
const mitk::ImageGetInput (void) const
 
mitk::ImageGetInput (void)
 
virtual void SetInput (const mitk::Image *image)
 
void SetThreshold (double threshold)
 
double GetThreshold ()
 
virtual int GetNumberOfExtractedPoints ()
 
- 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

 ImageToUnstructuredGridFilter ()
 
virtual ~ImageToUnstructuredGridFilter ()
 
template<typename TPixel , unsigned int VImageDimension>
void ExtractPoints (const itk::Image< TPixel, VImageDimension > *image)
 
- Protected Member Functions inherited from mitk::UnstructuredGridSource
 UnstructuredGridSource ()
 
virtual ~UnstructuredGridSource ()
 
- Protected Member Functions inherited from mitk::BaseDataSource
 BaseDataSource ()
 
virtual ~BaseDataSource ()
 

Additional Inherited Members

- 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
 
- 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

Converts an Image into an UnstructuredGrid represented by Points. The filter uses a Threshold to extract every pixel, with value higher than the threshold, as point. If no threshold is set, every pixel is extracted as a point.

Definition at line 37 of file mitkImageToUnstructuredGridFilter.h.

Constructor & Destructor Documentation

mitk::ImageToUnstructuredGridFilter::ImageToUnstructuredGridFilter ( )
protected

Constructor

Definition at line 28 of file mitkImageToUnstructuredGridFilter.cpp.

References mitk::UnstructuredGrid::New().

mitk::ImageToUnstructuredGridFilter::~ImageToUnstructuredGridFilter ( )
protectedvirtual

Destructor

Definition at line 33 of file mitkImageToUnstructuredGridFilter.cpp.

Member Function Documentation

Pointer mitk::ImageToUnstructuredGridFilter::Clone ( ) const
template<typename TPixel , unsigned int VImageDimension>
void mitk::ImageToUnstructuredGridFilter::ExtractPoints ( const itk::Image< TPixel, VImageDimension > *  image)
protected

Access method for extracting the points from the input image

Definition at line 83 of file mitkImageToUnstructuredGridFilter.cpp.

References mitk::New().

void mitk::ImageToUnstructuredGridFilter::GenerateData ( )
overridevirtual
void mitk::ImageToUnstructuredGridFilter::GenerateOutputInformation ( )
overridevirtual

Initializes the output information

Reimplemented in mitk::ImageToPointCloudFilter, and mitk::FeatureBasedEdgeDetectionFilter.

Definition at line 137 of file mitkImageToUnstructuredGridFilter.cpp.

const mitk::Image * mitk::ImageToUnstructuredGridFilter::GetInput ( void  ) const

Returns a const reference to the input image

Definition at line 60 of file mitkImageToUnstructuredGridFilter.cpp.

References MITK_ERROR.

Referenced by mitk::FeatureBasedEdgeDetectionFilter::GenerateData(), and mitk::ImageToPointCloudFilter::GenerateData().

mitk::Image * mitk::ImageToUnstructuredGridFilter::GetInput ( void  )

Definition at line 71 of file mitkImageToUnstructuredGridFilter.cpp.

References MITK_ERROR.

virtual int mitk::ImageToUnstructuredGridFilter::GetNumberOfExtractedPoints ( )
virtual

Reimplemented in mitk::ImageToPointCloudFilter.

double mitk::ImageToUnstructuredGridFilter::GetThreshold ( )

Returns the threshold

Definition at line 132 of file mitkImageToUnstructuredGridFilter.cpp.

mitk::ImageToUnstructuredGridFilter::mitkClassMacro ( ImageToUnstructuredGridFilter  ,
UnstructuredGridSource   
)
void mitk::ImageToUnstructuredGridFilter::SetInput ( const mitk::Image image)
virtual

Definition at line 55 of file mitkImageToUnstructuredGridFilter.cpp.

void mitk::ImageToUnstructuredGridFilter::SetThreshold ( double  threshold)

Set the threshold for extracting points. Every pixel, which value is higher than this value, will be a point.

Definition at line 127 of file mitkImageToUnstructuredGridFilter.cpp.


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