DICOM Image Segmentation - Flood Fill

VolumeViz DICOM Image Segmentation - Flood Fill

In other examples you can see how to display a filtered image by toggling between the original and filtered images or by displaying (parts of) both original and filtered images simultaneously using an "image wipe" filter. In those examples the output of the filter is a modified version of the original data, with the same data type and value range as the original.


In this example the output of the flood fill filter is a "binary" image consisting of 0's and 1's. The filter has set the voxels selected by the segmentation operation (if any) to 1. This actually makes it easier to display the fesult of the filter operation. If we arrange for the 0 voxels to be completely transparent and the 1 voxels to be opaque (or translucent), then we can simply display the segmentation result "on top of" the original image as a sort of overlay. "On top of" in computer graphics terms really means "closer to the camera". So we need to be careful where we position the SoOrthoSlice that renders the filter output. We'll still use an SoSwitch node, but in this case the whichChild field will be set to 0 to display only the original data or set to -3 to display both original and filtered data.


Mouse buttons

Hot keys:



SoVolumeData, SoDataRange, SoOrthoSlice


Open Inventor Toolkit reference manual, generated on 12 Sep 2022
Copyright © Thermo Fisher Scientific All rights reserved.