Medical Imaging Interaction Toolkit  2023.12.99-7a59bd54
Medical Imaging Interaction Toolkit
mitk::ImageToPointCloudFilter Class Reference

The filter extracts the edge pixels of an image as points and stores them in an UnstructuredGrid. Every pixel which grey value is between the mean +- standard deviation * (2 or 3), will be extracted as point. The DetectionMethod can be set to choose if the doubled or tripled standard deviation is used. More...

#include <mitkImageToPointCloudFilter.h>

Inheritance diagram for mitk::ImageToPointCloudFilter:
Collaboration diagram for mitk::ImageToPointCloudFilter:

Public Types

enum  DetectionMethod { LAPLACIAN_STD_DEV2, LAPLACIAN_STD_DEV3, LAPLACIAN_STD_DEV4 }
 The method which calculates and extracts the edge pixels/points. For the edge detection the laplacian filter is used and for extraction the standard deviation multiplied with 2, 3 or 4 (depending on selected method) is used. More...
 
typedef itk::Image< double, 3 > FloatImageType
 
- 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 (ImageToPointCloudFilter, ImageToUnstructuredGridFilter)
 
virtual DetectionMethod GetMethod ()
 
virtual void SetMethod (DetectionMethod _arg)
 
- Public Member Functions inherited from mitk::ImageToUnstructuredGridFilter
 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::ImageToUnstructuredGridFilter
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

void GenerateData () override
 
void GenerateOutputInformation () override
 
 ImageToPointCloudFilter ()
 
 ~ImageToPointCloudFilter () override
 
- Protected Member Functions inherited from mitk::ImageToUnstructuredGridFilter
 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
 

Additional Inherited Members

- Static Protected Member Functions inherited from mitk::BaseDataSource
static Pointer New ()
 
- Protected Attributes inherited from mitk::ImageToUnstructuredGridFilter
int m_NumberOfExtractedPoints
 

Detailed Description

The filter extracts the edge pixels of an image as points and stores them in an UnstructuredGrid. Every pixel which grey value is between the mean +- standard deviation * (2 or 3), will be extracted as point. The DetectionMethod can be set to choose if the doubled or tripled standard deviation is used.

Definition at line 30 of file mitkImageToPointCloudFilter.h.

Member Typedef Documentation

◆ FloatImageType

Member Enumeration Documentation

◆ DetectionMethod

The method which calculates and extracts the edge pixels/points. For the edge detection the laplacian filter is used and for extraction the standard deviation multiplied with 2, 3 or 4 (depending on selected method) is used.

Enumerator
LAPLACIAN_STD_DEV2 
LAPLACIAN_STD_DEV3 
LAPLACIAN_STD_DEV4 

Definition at line 39 of file mitkImageToPointCloudFilter.h.

Constructor & Destructor Documentation

◆ ImageToPointCloudFilter()

mitk::ImageToPointCloudFilter::ImageToPointCloudFilter ( )
protected

Constructor

◆ ~ImageToPointCloudFilter()

mitk::ImageToPointCloudFilter::~ImageToPointCloudFilter ( )
overrideprotected

Destructor

Member Function Documentation

◆ GenerateData()

void mitk::ImageToPointCloudFilter::GenerateData ( )
overrideprotected

This method is called by Update().

◆ GenerateOutputInformation()

void mitk::ImageToPointCloudFilter::GenerateOutputInformation ( )
overrideprotected

Initializes the output information

◆ GetMethod()

virtual DetectionMethod mitk::ImageToPointCloudFilter::GetMethod ( )
virtual

Returns the selected DetectionMethod

◆ mitkClassMacro()

mitk::ImageToPointCloudFilter::mitkClassMacro ( ImageToPointCloudFilter  ,
ImageToUnstructuredGridFilter   
)

◆ New()

static Pointer mitk::ImageToPointCloudFilter::New ( )
static

◆ SetMethod()

virtual void mitk::ImageToPointCloudFilter::SetMethod ( DetectionMethod  _arg)
virtual

Sets the DetectionMethod for edge detection and extraction


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