Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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)
 
Pointer Clone () const
 
void GenerateData () override
 
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)
 
Pointer Clone () const
 
mitkBaseDataSourceGetOutputDeclarations itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
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...
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

int m_NumberOfExtractedPoints
 

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 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 33 of file mitkImageToUnstructuredGridFilter.h.

Constructor & Destructor Documentation

◆ ImageToUnstructuredGridFilter()

mitk::ImageToUnstructuredGridFilter::ImageToUnstructuredGridFilter ( )
protected

Constructor

◆ ~ImageToUnstructuredGridFilter()

mitk::ImageToUnstructuredGridFilter::~ImageToUnstructuredGridFilter ( )
overrideprotected

Destructor

Member Function Documentation

◆ Clone()

Pointer mitk::ImageToUnstructuredGridFilter::Clone ( ) const

◆ ExtractPoints()

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

◆ GenerateData()

void mitk::ImageToUnstructuredGridFilter::GenerateData ( )
override

This method is called by Update().

◆ GenerateOutputInformation()

void mitk::ImageToUnstructuredGridFilter::GenerateOutputInformation ( )
override

Initializes the output information

◆ GetInput() [1/2]

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

◆ GetInput() [2/2]

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

Returns a const reference to the input image

◆ GetNumberOfExtractedPoints()

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

Returns the number of extracted points after edge detection

◆ GetThreshold()

double mitk::ImageToUnstructuredGridFilter::GetThreshold ( )

Returns the threshold

◆ mitkClassMacro()

mitk::ImageToUnstructuredGridFilter::mitkClassMacro ( ImageToUnstructuredGridFilter  ,
UnstructuredGridSource   
)

◆ New()

static Pointer mitk::ImageToUnstructuredGridFilter::New ( )
static

◆ SetInput()

virtual void mitk::ImageToUnstructuredGridFilter::SetInput ( const mitk::Image image)
virtual

◆ SetThreshold()

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.

Member Data Documentation

◆ m_NumberOfExtractedPoints

int mitk::ImageToUnstructuredGridFilter::m_NumberOfExtractedPoints
protected

The number of points extracted by the filter

Definition at line 82 of file mitkImageToUnstructuredGridFilter.h.


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