Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
DICOM Image Filter - Toggle

VolumeViz DICOM Image Filter - Toggle.

This example extends the DicomImageViewer example. In this example we want to be able to load a DICOM image or series and apply an image filter to the image that is currently displayed. The new code shows how to get the image (or volume) data into ImageViz, how to create a basic filter pipeline and how to bridge the output of the filters back into VolumeViz for display.

There are several ways to present the filtered image to the user. In this example we show one of the simplest ways. We create a main scene graph containing a camera and all our annotation objects, then we create two sub-graphs under an SoSwitch node. The first sub-graph renders the original slice data and the second sub-graph renders the filtered slice data. We handle key press events and toggle between original and filtered data when the user presses the 'F' key (for Filter).

Mouse buttons

    • In Selection mode (the default):
      • No buttons: Voxel position and value are displayed as mouse moves.
      • Button 1: Image number changes as mouse moves up and down.
      • Button 2: Window level and width change as mouse moves.
      • Wheel : Changes image number.
    • In Viewing mode (press ESC to toggle):
      • Button 1: Zoom in and out as mouse moves.
      • Button 2: Pan image as mouse moves.
      • Wheel : Zoom

Hot keys:

    • F : Toggle between original and filtered image.
    • R : Reset window level and width.
    • H : Reset pan and zoom (default view).

FILES:

    • Medical/ImageProcessing/medicalImageFilterToggle/imageFilterToggle.cxx

SEE ALSO

SoVolumeData SoDataRange SoOrthoSlice

SCREENSHOT: