NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Implementation of MorphologicalSegmentorPipelineInterface using ITK filters. More...
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 ¶ms) |
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... | |
Implementation of MorphologicalSegmentorPipelineInterface using ITK filters.
typedef itk::MIDASConditionalDilationFilter<SegmentationImageType, GreyScaleImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::DilationFilterType |
typedef itk::MIDASConditionalErosionFilter<SegmentationImageType, GreyScaleImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::ErosionFilterType |
typedef itk::Image<TPixel, VImageDimension> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::GreyScaleImageType |
typedef itk::MIDASMaskByRegionImageFilter<SegmentationImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::MaskByRegionFilterType |
typedef itk::MIDASRethresholdingFilter<GreyScaleImageType, SegmentationImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::RethresholdingFilterType |
typedef itk::Image<unsigned char, VImageDimension> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SegmentationImageType |
typedef itk::BinaryThresholdImageFilter<GreyScaleImageType, SegmentationImageType> MorphologicalSegmentorPipeline< TPixel, VImageDimension >::ThresholdingFilterType |
MorphologicalSegmentorPipeline< TPixel, VImageDimension >::MorphologicalSegmentorPipeline | ( | ) |
Default constructor, creating all pipeline elements, where filters are held with smart pointers for automatic destruction.
|
virtual |
No-op destructor, as all objects will be destroyed by smart pointers.
SegmentationImageType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::GetOutput | ( | ) |
Gets the output image from the pipeline, used to copy back into MITK world.
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.
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetBackgroundValue | ( | unsigned char | backgroundValue | ) |
Sets the value to use throughout the binary pipeline for background (defaults to 0).
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetDilationSubtractionsInput | ( | const SegmentationImageType * | dilationsSubtractionsImage | ) |
Set dilation subtractions input image.
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetErosionSubtractionsInput | ( | const SegmentationImageType * | erosionsSubtractionsImage | ) |
Set erosion subtractions input image.
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetForegroundValue | ( | unsigned char | foregroundValue | ) |
Sets the value to use throughout the binary pipeline for foreground (defaults to 1).
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.
void MorphologicalSegmentorPipeline< TPixel, VImageDimension >::SetParams | ( | const MorphologicalSegmentorPipelineParams & | params | ) |
Set parameters on pipeline, where parameters come directly from GUI controls.
|
virtual |
Update the pipeline.
editingFlags | array of 4 booleans to say which images are being editted. |
editingRegion | a vector of 6 integers containing the size[0-2], and index[3-5] of the affected region. |
Implements MorphologicalSegmentorPipelineInterface.
LargestConnectedComponentFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_DilationConnectedComponentFilter |
DilationFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_DilationFilter |
MaskByRegionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_DilationMaskFilter |
LargestConnectedComponentFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ErosionConnectedComponentFilter |
ErosionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ErosionFilter |
MaskByRegionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ErosionMaskFilter |
RethresholdingFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_RethresholdingFilter |
LargestConnectedComponentFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ThresholdingConnectedComponentFilter |
ThresholdingFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ThresholdingFilter |
MaskByRegionFilterType::Pointer MorphologicalSegmentorPipeline< TPixel, VImageDimension >::m_ThresholdingMaskFilter |