NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Public Attributes | List of all members
MorphologicalSegmentorPipeline< TPixel, VImageDimension > Class Template Reference

Implementation of MorphologicalSegmentorPipelineInterface using ITK filters. More...

Inheritance diagram for MorphologicalSegmentorPipeline< TPixel, VImageDimension >:
Inheritance graph
[legend]
Collaboration diagram for MorphologicalSegmentorPipeline< TPixel, VImageDimension >:
Collaboration graph
[legend]

Public Types

typedef itk::Image< TPixel,
VImageDimension > 
GreyScaleImageType
 
typedef itk::Image< unsigned
char, VImageDimension > 
SegmentationImageType
 
typedef
itk::BinaryThresholdImageFilter
< GreyScaleImageType,
SegmentationImageType
ThresholdingFilterType
 
typedef
itk::MIDASMaskByRegionImageFilter
< SegmentationImageType,
SegmentationImageType
MaskByRegionFilterType
 
typedef
itk::MIDASMorphologicalSegmentorLargestConnectedComponentImageFilter
< SegmentationImageType,
SegmentationImageType
LargestConnectedComponentFilterType
 
typedef
itk::MIDASConditionalErosionFilter
< SegmentationImageType,
GreyScaleImageType,
SegmentationImageType
ErosionFilterType
 
typedef
itk::MIDASConditionalDilationFilter
< SegmentationImageType,
GreyScaleImageType,
SegmentationImageType
DilationFilterType
 
typedef
itk::MIDASRethresholdingFilter
< GreyScaleImageType,
SegmentationImageType,
SegmentationImageType
RethresholdingFilterType
 
- Public Types inherited from MorphologicalSegmentorPipelineInterface
enum  { THRESHOLDING, EROSION, DILATION, RETHRESHOLDING }
 

Public Member Functions

 MorphologicalSegmentorPipeline ()
 Default constructor, creating all pipeline elements, where filters are held with smart pointers for automatic destruction. More...
 
virtual ~MorphologicalSegmentorPipeline ()
 No-op destructor, as all objects will be destroyed by smart pointers. More...
 
void SetInputs (const GreyScaleImageType *referenceImage, const SegmentationImageType *erosionsAdditionsImage, const SegmentationImageType *erosionsSubtractionsImage, const SegmentationImageType *dilationsAdditionsImage, const SegmentationImageType *dilationsSubtractionsImage)
 Set parameters on pipeline, where parameters come directly from GUI controls. More...
 
void SetErosionSubtractionsInput (const SegmentationImageType *erosionsSubtractionsImage)
 Set erosion subtractions input image. More...
 
void SetDilationSubtractionsInput (const SegmentationImageType *dilationsSubtractionsImage)
 Set dilation subtractions input image. More...
 
void SetParams (const MorphologicalSegmentorPipelineParams &params)
 Set parameters on pipeline, where parameters come directly from GUI controls. More...
 
void SetForegroundValue (unsigned char foregroundValue)
 Sets the value to use throughout the binary pipeline for foreground (defaults to 1). More...
 
void SetBackgroundValue (unsigned char backgroundValue)
 Sets the value to use throughout the binary pipeline for background (defaults to 0). More...
 
void Update (const std::vector< bool > &editingFlags, const std::vector< int > &editingRegion)
 Update the pipeline. More...
 
SegmentationImageType::Pointer GetOutput ()
 Gets the output image from the pipeline, used to copy back into MITK world. More...
 
SegmentationImageType::Pointer GetOutput (int stage)
 Gets the output image of a specific stage of the pipeline. Used to copy back into MITK world. This function assumes that Update() has been called for that stage (see SetParams) and DisconnectPipeline() has not been called since then. More...
 
- Public Member Functions inherited from MorphologicalSegmentorPipelineInterface
 MorphologicalSegmentorPipelineInterface ()
 Default no-op constructor. More...
 
virtual ~MorphologicalSegmentorPipelineInterface ()
 Default no-op destructor. More...
 

Public Attributes

ThresholdingFilterType::Pointer m_ThresholdingFilter
 
MaskByRegionFilterType::Pointer m_ThresholdingMaskFilter
 
LargestConnectedComponentFilterType::Pointer m_ThresholdingConnectedComponentFilter
 
ErosionFilterType::Pointer m_ErosionFilter
 
MaskByRegionFilterType::Pointer m_ErosionMaskFilter
 
LargestConnectedComponentFilterType::Pointer m_ErosionConnectedComponentFilter
 
DilationFilterType::Pointer m_DilationFilter
 
MaskByRegionFilterType::Pointer m_DilationMaskFilter
 
LargestConnectedComponentFilterType::Pointer m_DilationConnectedComponentFilter
 
RethresholdingFilterType::Pointer m_RethresholdingFilter
 

Detailed Description

template<typename TPixel, unsigned int VImageDimension>
class MorphologicalSegmentorPipeline< TPixel, VImageDimension >

Implementation of MorphologicalSegmentorPipelineInterface using ITK filters.

Member Typedef Documentation

template<typename TPixel , unsigned int VImageDimension>
typedef itk::MIDASConditionalDilationFilter<SegmentationImageType, GreyScaleImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::DilationFilterType
template<typename TPixel , unsigned int VImageDimension>
typedef itk::MIDASConditionalErosionFilter<SegmentationImageType, GreyScaleImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::ErosionFilterType
template<typename TPixel , unsigned int VImageDimension>
typedef itk::Image<TPixel, VImageDimension> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::GreyScaleImageType
template<typename TPixel , unsigned int VImageDimension>
typedef itk::MIDASMaskByRegionImageFilter<SegmentationImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::MaskByRegionFilterType
template<typename TPixel , unsigned int VImageDimension>
typedef itk::MIDASRethresholdingFilter<GreyScaleImageType, SegmentationImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::RethresholdingFilterType
template<typename TPixel , unsigned int VImageDimension>
typedef itk::Image<unsigned char, VImageDimension> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SegmentationImageType
template<typename TPixel , unsigned int VImageDimension>
typedef itk::BinaryThresholdImageFilter<GreyScaleImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::ThresholdingFilterType

Constructor & Destructor Documentation

template<typename TPixel , unsigned int VImageDimension>
MorphologicalSegmentorPipeline< TPixel, VImageDimension >::MorphologicalSegmentorPipeline ( )

Default constructor, creating all pipeline elements, where filters are held with smart pointers for automatic destruction.

template<typename TPixel , unsigned int VImageDimension>
virtual MorphologicalSegmentorPipeline< TPixel, VImageDimension >::~MorphologicalSegmentorPipeline ( )
virtual

No-op destructor, as all objects will be destroyed by smart pointers.

Member Function Documentation

template<typename TPixel , unsigned int VImageDimension>
SegmentationImageType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::GetOutput ( )

Gets the output image from the pipeline, used to copy back into MITK world.

template<typename TPixel , unsigned int VImageDimension>
SegmentationImageType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::GetOutput ( int  stage)

Gets the output image of a specific stage of the pipeline. Used to copy back into MITK world. This function assumes that Update() has been called for that stage (see SetParams) and DisconnectPipeline() has not been called since then.

template<typename TPixel , unsigned int VImageDimension>
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetBackgroundValue ( unsigned char  backgroundValue)

Sets the value to use throughout the binary pipeline for background (defaults to 0).

template<typename TPixel , unsigned int VImageDimension>
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetDilationSubtractionsInput ( const SegmentationImageType dilationsSubtractionsImage)

Set dilation subtractions input image.

template<typename TPixel , unsigned int VImageDimension>
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetErosionSubtractionsInput ( const SegmentationImageType erosionsSubtractionsImage)

Set erosion subtractions input image.

template<typename TPixel , unsigned int VImageDimension>
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetForegroundValue ( unsigned char  foregroundValue)

Sets the value to use throughout the binary pipeline for foreground (defaults to 1).

template<typename TPixel , unsigned int VImageDimension>
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetInputs ( const GreyScaleImageType referenceImage,
const SegmentationImageType erosionsAdditionsImage,
const SegmentationImageType erosionsSubtractionsImage,
const SegmentationImageType dilationsAdditionsImage,
const SegmentationImageType dilationsSubtractionsImage 
)

Set parameters on pipeline, where parameters come directly from GUI controls.

template<typename TPixel , unsigned int VImageDimension>
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetParams ( const MorphologicalSegmentorPipelineParams params)

Set parameters on pipeline, where parameters come directly from GUI controls.

template<typename TPixel , unsigned int VImageDimension>
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::Update ( const std::vector< bool > &  editingFlags,
const std::vector< int > &  editingRegion 
)
virtual

Update the pipeline.

Parameters
editingFlagsarray of 4 booleans to say which images are being editted.
editingRegiona vector of 6 integers containing the size[0-2], and index[3-5] of the affected region.

Implements MorphologicalSegmentorPipelineInterface.

Member Data Documentation

template<typename TPixel , unsigned int VImageDimension>
LargestConnectedComponentFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_DilationConnectedComponentFilter
template<typename TPixel , unsigned int VImageDimension>
DilationFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_DilationFilter
template<typename TPixel , unsigned int VImageDimension>
MaskByRegionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_DilationMaskFilter
template<typename TPixel , unsigned int VImageDimension>
LargestConnectedComponentFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ErosionConnectedComponentFilter
template<typename TPixel , unsigned int VImageDimension>
ErosionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ErosionFilter
template<typename TPixel , unsigned int VImageDimension>
MaskByRegionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ErosionMaskFilter
template<typename TPixel , unsigned int VImageDimension>
RethresholdingFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_RethresholdingFilter
template<typename TPixel , unsigned int VImageDimension>
LargestConnectedComponentFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ThresholdingConnectedComponentFilter
template<typename TPixel , unsigned int VImageDimension>
ThresholdingFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ThresholdingFilter
template<typename TPixel , unsigned int VImageDimension>
MaskByRegionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ThresholdingMaskFilter

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