Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::MorphologicalOperations Class Reference

Encapsulates several morphological operations that can be performed on segmentations. The Operations do also support 2D images; but 2D images will not work with coronal or sagittal structuring elements, as the expect a 3rd dimension. More...

#include <mitkMorphologicalOperations.h>

Public Types

enum  StructuralElementType {
  Ball, Ball_Axial, Ball_Sagittal, Ball_Coronal,
  Cross, Cross_Axial, Cross_Sagittal, Cross_Coronal
}
 

Static Public Member Functions

static void Closing (mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
 Perform morphological operation on 2D, 3D or 3D+t segmentation. More...
 
static void Erode (mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
 Perform morphological operation on 2D, 3D or 3D+t segmentation. More...
 
static void Dilate (mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
 Perform morphological operation on 2D, 3D or 3D+t segmentation. More...
 
static void Opening (mitk::Image::Pointer &image, int factor, StructuralElementType structuralElement)
 Perform morphological operation on 2D, 3D or 3D+t segmentation. More...
 
static void FillHoles (mitk::Image::Pointer &image)
 Perform morphological operation on 2D, 3D or 3D+t segmentation. More...
 

Detailed Description

Encapsulates several morphological operations that can be performed on segmentations. The Operations do also support 2D images; but 2D images will not work with coronal or sagittal structuring elements, as the expect a 3rd dimension.

Definition at line 25 of file mitkMorphologicalOperations.h.

Member Enumeration Documentation

◆ StructuralElementType

Enumerator
Ball 
Ball_Axial 
Ball_Sagittal 
Ball_Coronal 
Cross 
Cross_Axial 
Cross_Sagittal 
Cross_Coronal 

Definition at line 28 of file mitkMorphologicalOperations.h.

Member Function Documentation

◆ Closing()

static void mitk::MorphologicalOperations::Closing ( mitk::Image::Pointer image,
int  factor,
StructuralElementType  structuralElement 
)
static

Perform morphological operation on 2D, 3D or 3D+t segmentation.

◆ Dilate()

static void mitk::MorphologicalOperations::Dilate ( mitk::Image::Pointer image,
int  factor,
StructuralElementType  structuralElement 
)
static

Perform morphological operation on 2D, 3D or 3D+t segmentation.

◆ Erode()

static void mitk::MorphologicalOperations::Erode ( mitk::Image::Pointer image,
int  factor,
StructuralElementType  structuralElement 
)
static

Perform morphological operation on 2D, 3D or 3D+t segmentation.

◆ FillHoles()

static void mitk::MorphologicalOperations::FillHoles ( mitk::Image::Pointer image)
static

Perform morphological operation on 2D, 3D or 3D+t segmentation.

◆ Opening()

static void mitk::MorphologicalOperations::Opening ( mitk::Image::Pointer image,
int  factor,
StructuralElementType  structuralElement 
)
static

Perform morphological operation on 2D, 3D or 3D+t segmentation.


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