Medical Imaging Interaction Toolkit  2023.12.99-ed252ae7
Medical Imaging Interaction Toolkit
The Segmentation Utilities View
Icon of the Segmentation Utilities View


The Segmentation Utilities View


Overview

The Segmentation Utilities View allows to postprocess existing segmentations. Currently five different operations exist:

Data Selection

All postprocessing operations provide one or more selection widgets, which allow to select the data for the operation.

Boolean operations

Boolean operations allows to perform the following fundamental operations on two segmentations:

  • Difference: Subtracts the second segmentation from the first segmentation.
  • Intersection: Extracts the overlapping areas of the two selected segmentations.
  • Union: Combines the two existing segmentations.

The selected segmentations must have the same geometry (size, spacing, ...) in order for the operations to work correctly. The result will be stored in a new data node as a child node of the first selected segmentation.

Boolean operations


Image masking

Image masking allows to mask an image with either an existing segmentation or a surface. The operation requires an image and a segmentation or a surface. The result will be an image containing only the pixels that are covered by the respective mask.

The default background pixel value is zero. It can be changed to the minimum existing pixel value of the image or to a custom pixel value. If the custom pixel value is out of the valid bounds of the pixel type, it is optionally clamped accordingly.

Image masking


Morphological operations

Morphological operations are applied to a single segmentation image. Based on a given structuring element the underlying segmentation will be modified. The plugin provides a ball and a cross as structuring elements. The follow operations are available:

  • Dilation: Each labeled pixel within the segmentation will be dilated based on the selected structuring element.
  • Erosion: Each labeled pixel within the segmentation will be eroded based on the selected structuring element.
  • Opening: A dilation followed by an erosion, used for smoothing edges or eliminating small objects.
  • Closing: An erosion followed by an dilation, used for filling small holes.
  • Fill Holes: Fills bigger holes within a segmentation.
Morphological operations


Convert to Segmentation

Convert to segmentation allows to convert one or multiple input data into a multi-label segmentation. The supported input data types are surfaces, contour models and images. Surfaces and contour models will be converted into a new label (with the same color then the respective input data). Input images will be analyzed for their pixel content. Each pixel value (different to 0; which marks unlabeled pixels) will be associated with the new label. The conversion can have the following outputs:

  • Convert to new segmentation: The inputs will be converted and integrated in a new segmentation. The geometry of the output segmentation is determined by the largest geometry of the input images. If no images are selected as input, one has to specify an image or segmentation as reference. If sub mode "Convert inputs separately" is selected, each input will be converted into its own multi-label segmentation output.
  • Add to existing segmentation: The inputs will be converted and integrated as new group(s) in a selected segmentation.

For the output the following grouping modes can be selected (if the output is not new separate segmentation):

  • Merge all inputs ...: All inputs will be merged into a new group. Remark: If inputs overlap the inputs might overwrite each other.
  • New group per input: Each input will be added as a new group to the multi-label segmentation.

Remark on label values: when converting inputs into a multi-labels segmentation the conversion process tries to keep the label value the same like the original value. In cases of surfaces or contour models it would be 1. In case of images it would be the respective pixel value. In cases of the label value collision (the label value is already used in the segmentation) a new value will be assigned to resolve the conflict. Therefore it is only guaranteed that values are kept, if you convert only one input into a new or empty segmentation.

Remark unsupported geometries: if you select images as input, these images have to have either the same geometry or must be a sub geometry. If an reference is defined or you want to add them to an existing segmentation, the imports images also have to have the same geometry like the target or be a sub geometry of it.

Extract from Segmentation

Extract from segmentation allows to extract the content of a multi-label segmentation (either all labeled or a selection of labels) in various ways and stores it as simple images in the data storage.

The following output options are available (at least one must be selected):

  • label class map(s): This generates an image where each pixel value (different from 0, which indicates unlabeled pixels) indicates a label class. Label class comprises all label instances that have the same label name. One can also see that has the semantic segmentation result. This mode will generate an output for each group indicated by the selected labels (or all groups).
  • Label instance map(s): This generates an image where each pixel value (different from 0, which indicates unlabeled pixels) indicates a label instance. The used pixel values are equivalent to the label value of each instance. This mode will generate an output for each group indicated by the selected labels (or all groups).
  • Label instance mask(s): This generates an image for one label instance where each pixel value (different from 0, which indicates unlabeled pixels) indicates the label instance. The used pixel value is equivalent to the label value of the label instance.