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

VolumeViz DICOM Image Filter - Wipe.

This example extends the DICOM ImageViewer 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. There is also an example that shows how to "toggle" between the original image and the filtered image. In this example we display both images side-by-side using a technique similar to the well known "image wipe" effect. The user can move the dividing line back and forth to compare the original image to the filtered image in a compact amount of screen space.

In this example we use the "deblur" filter, partly because its effect on the image is easy to see. Your application can use any of the smoothing, edge detection, etc filters or chain multiple filters together.

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 side-by-side image.
    • R : Reset window level and width.
    • H : Reset pan and zoom (default view).

FILES:

    • Medical/ImageProcessing/medicalImageFilterWipe/imageFilterWipe.cxx
    • Medical/ImageProcessing/medicalImageFilterWipe/ImageWipeShader.h
    • Medical/ImageProcessing/medicalImageFilterWipe/ImageWipeShader.cxx

SEE ALSO

SoVolumeData SoDataRange SoOrthoSlice

SCREENSHOT: