Medical Imaging Interaction Toolkit  2016.11.0
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) static Pointer New()
 
void SetSegmentationMask (mitk::Image::Pointer)
 
- 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 ()
 
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

virtual void GenerateData ()
 
virtual void GenerateOutputInformation ()
 
 FeatureBasedEdgeDetectionFilter ()
 
virtual ~FeatureBasedEdgeDetectionFilter ()
 
template<typename TPixel , unsigned int VImageDimension>
void ITKThresholding (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 ()
 
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

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 35 of file mitkFeatureBasedEdgeDetectionFilter.h.

Constructor & Destructor Documentation

mitk::FeatureBasedEdgeDetectionFilter::FeatureBasedEdgeDetectionFilter ( )
protected

Constructor

Definition at line 37 of file mitkFeatureBasedEdgeDetectionFilter.cpp.

mitk::FeatureBasedEdgeDetectionFilter::~FeatureBasedEdgeDetectionFilter ( )
protectedvirtual

Destructor

Definition at line 44 of file mitkFeatureBasedEdgeDetectionFilter.cpp.

Member Function Documentation

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

Initializes the output information

Reimplemented from mitk::ImageToUnstructuredGridFilter.

Definition at line 197 of file mitkFeatureBasedEdgeDetectionFilter.cpp.

template<typename TPixel , unsigned int VImageDimension>
void mitk::FeatureBasedEdgeDetectionFilter::ITKThresholding ( 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

Definition at line 161 of file mitkFeatureBasedEdgeDetectionFilter.cpp.

References mitk::GrabItkImageMemory(), and mitk::New().

mitk::FeatureBasedEdgeDetectionFilter::mitkClassMacro ( FeatureBasedEdgeDetectionFilter  ,
ImageToUnstructuredGridFilter   
)
void mitk::FeatureBasedEdgeDetectionFilter::SetSegmentationMask ( mitk::Image::Pointer  segmentation)

Sets the segmentation for calculating the statistics within that

Definition at line 192 of file mitkFeatureBasedEdgeDetectionFilter.cpp.

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