Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitk::FeatureBasedEdgeDetectionFilter Class Reference

Calculates edges and extracts them as an UnstructuredGrid with respect to the given segmentation. More...

#include <mitkFeatureBasedEdgeDetectionFilter.h>

Inheritance diagram for mitk::FeatureBasedEdgeDetectionFilter:
Collaboration diagram for mitk::FeatureBasedEdgeDetectionFilter:

Public Member Functions

 mitkClassMacro (FeatureBasedEdgeDetectionFilter, ImageToUnstructuredGridFilter)
 
void SetSegmentationMask (mitk::Image::Pointer)
 
- 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
 
 FeatureBasedEdgeDetectionFilter ()
 
 ~FeatureBasedEdgeDetectionFilter () override
 
template<typename TPixel , unsigned int VImageDimension>
void ITKThresholding (const itk::Image< TPixel, VImageDimension > *originalImage, double lower, double upper, mitk::Image::Pointer &result)
 
template<typename TPixel , unsigned int VImageDimension>
void ContourSearch (itk::Image< TPixel, VImageDimension > *originalImage, mitk::Image::Pointer &result)
 
template<typename TPixel , unsigned int VImageDimension>
void ThreadedClosing (itk::Image< TPixel, VImageDimension > *originalImage, mitk::Image::Pointer &result)
 
- 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

- 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 ()
 
- Protected Attributes inherited from mitk::ImageToUnstructuredGridFilter
int m_NumberOfExtractedPoints
 

Detailed Description

Calculates edges and extracts them as an UnstructuredGrid with respect to the given segmentation.

At first the statistic of the grey values within the segmentation is calculated. Based on this statistic a thresholding is executed. The thresholded image will be processed by morphological filters. The resulting image will be used for masking the input image. The masked image is used as input for the ImageToPointCloudFilter, which output is an UnstructuredGrid.

Definition at line 31 of file mitkFeatureBasedEdgeDetectionFilter.h.

Constructor & Destructor Documentation

◆ FeatureBasedEdgeDetectionFilter()

mitk::FeatureBasedEdgeDetectionFilter::FeatureBasedEdgeDetectionFilter ( )
protected

Constructor

◆ ~FeatureBasedEdgeDetectionFilter()

mitk::FeatureBasedEdgeDetectionFilter::~FeatureBasedEdgeDetectionFilter ( )
overrideprotected

Destructor

Member Function Documentation

◆ ContourSearch()

template<typename TPixel , unsigned int VImageDimension>
void mitk::FeatureBasedEdgeDetectionFilter::ContourSearch ( itk::Image< TPixel, VImageDimension > *  originalImage,
mitk::Image::Pointer result 
)
protected

◆ GenerateData()

void mitk::FeatureBasedEdgeDetectionFilter::GenerateData ( )
overrideprotected

This method is called by Update().

◆ GenerateOutputInformation()

void mitk::FeatureBasedEdgeDetectionFilter::GenerateOutputInformation ( )
overrideprotected

Initializes the output information

◆ ITKThresholding()

template<typename TPixel , unsigned int VImageDimension>
void mitk::FeatureBasedEdgeDetectionFilter::ITKThresholding ( const itk::Image< TPixel, VImageDimension > *  originalImage,
double  lower,
double  upper,
mitk::Image::Pointer result 
)
protected

Execute a thresholding filter with the given lower and upper bound

◆ mitkClassMacro()

mitk::FeatureBasedEdgeDetectionFilter::mitkClassMacro ( FeatureBasedEdgeDetectionFilter  ,
ImageToUnstructuredGridFilter   
)

◆ New()

static Pointer mitk::FeatureBasedEdgeDetectionFilter::New ( )
static

◆ SetSegmentationMask()

void mitk::FeatureBasedEdgeDetectionFilter::SetSegmentationMask ( mitk::Image::Pointer  )

Sets the segmentation for calculating the statistics within that

◆ ThreadedClosing()

template<typename TPixel , unsigned int VImageDimension>
void mitk::FeatureBasedEdgeDetectionFilter::ThreadedClosing ( itk::Image< TPixel, VImageDimension > *  originalImage,
mitk::Image::Pointer result 
)
protected

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