Medical Imaging Interaction Toolkit  2016.11.0
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) static Pointer New()
 
virtual DetectionMethod GetMethod ()
 
virtual int GetNumberOfExtractedPoints ()
 
virtual void SetMethod (DetectionMethod _arg)
 
- Public Member Functions inherited from mitk::ImageToUnstructuredGridFilter
 mitkClassMacro (ImageToUnstructuredGridFilter, UnstructuredGridSource) static Pointer New()
 
Pointer Clone () const
 
const mitk::ImageGetInput (void) const
 
mitk::ImageGetInput (void)
 
virtual void SetInput (const mitk::Image *image)
 
void SetThreshold (double threshold)
 
double GetThreshold ()
 
- 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 ()
 
virtual void GenerateOutputInformation ()
 
 ImageToPointCloudFilter ()
 
virtual ~ImageToPointCloudFilter ()
 
- Protected Member Functions inherited from mitk::ImageToUnstructuredGridFilter
 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

- 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

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 34 of file mitkImageToPointCloudFilter.h.

Member Typedef Documentation

Member Enumeration Documentation

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 43 of file mitkImageToPointCloudFilter.h.

Constructor & Destructor Documentation

mitk::ImageToPointCloudFilter::ImageToPointCloudFilter ( )
protected

Constructor

Definition at line 31 of file mitkImageToPointCloudFilter.cpp.

mitk::ImageToPointCloudFilter::~ImageToPointCloudFilter ( )
protectedvirtual

Destructor

Definition at line 40 of file mitkImageToPointCloudFilter.cpp.

Member Function Documentation

void mitk::ImageToPointCloudFilter::GenerateData ( )
protectedvirtual

This method is called by Update().

Reimplemented from mitk::ImageToUnstructuredGridFilter.

Definition at line 44 of file mitkImageToPointCloudFilter.cpp.

References AccessByItk_1, mitk::ImageToUnstructuredGridFilter::GetInput(), and MITK_ERROR.

void mitk::ImageToPointCloudFilter::GenerateOutputInformation ( void  )
protectedvirtual

Initializes the output information

Reimplemented from mitk::ImageToUnstructuredGridFilter.

Definition at line 163 of file mitkImageToPointCloudFilter.cpp.

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

Returns the selected DetectionMethod

virtual int mitk::ImageToPointCloudFilter::GetNumberOfExtractedPoints ( )
virtual

Returns the number of extracted points after edge detection

Reimplemented from mitk::ImageToUnstructuredGridFilter.

mitk::ImageToPointCloudFilter::mitkClassMacro ( ImageToPointCloudFilter  ,
ImageToUnstructuredGridFilter   
)
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 files: