Visualization¶
XamFlow provides various options for creating visualizations. 3D images and surface meshes can be visualized interactively or offline.
In interactive visualization views, the left sidebar contains various tools to control the visualization.
View Mode Tabs¶
At the bottom of the screen there are various view mode tabs. XY, XZ and YZ are the 2D views in the three main directions. Grid and Ortho views show multiple 2D views at once. 3D views allow interactive 3D visualization using GPU rendering.
In-view mouse controls¶
In the visual views the mouse wheel and mouse dragging allow zooming, panning or rotating the camera.
2D Contrast & Color tool¶
A range slider with a grayscale or color gradient controls the brightness or color mapping. The lower and upper endpoints of the gradient can be moved individually to adjust the contrast. The right-click context menu contains commands to reset or automatically fit the gradient to the current slice, and zooming functionality for finer control.
The dropdown allows selecting different color schemes.
2D Slice Position tool¶
There is a slider to move through the image slices. Alternatively CTRL + mouse wheel can be used.
3D Contrast & Color tool¶
In addition to the color gradient range slider, there is a transparency range slider for the transfer function. The checkbox locks the two ranges so they are synchronized automatically. The dropdown allows selecting different transfer functions. Linear is usually appropriate for grayscale images. Box or Step are often useful for segmented images. Adjustable transfer functions reveal a transparency slider. Custom transfer functions can be designed, where double-clicking adds additional nodes or removes existing nodes.
Cutting tool¶
Cut planes or clip planes can be image aligned, view aligned, or arbitrarily rotated. Spherical, cylindrical or box shapes are also available.
The Auto checkbox is useful to invert the planes to automaticaly cut away the currently viewed octant.
Illumination tool¶
Various illumination options are available. The light direction can be adjusted with the right mouse button, and it can be locked to the camera or to the image.
VR Style tool¶
Various volume rendering styles are available. DVR (Direct Volume Rendering) is the default mode. IsoSurfaceDeferred is recommended for viewing binary mask images. It supports basic ambient occlusion illumination. DVRRaycasting supports rendering of shadows.
Background Color¶
The background color can be adjusted if a custom color palette is selected.
Dual View¶
In the dual view, the cutting planes are used to apply two different visualization settings to different parts of the image.
Compare Views¶
In compare views, two related images are visualized at the same time. In 2D the secondary image is blended on top of the first image. A slider can be used to adjust the transparency of the overlay.
In 3D again the cut planes can be used to control which parts of the images to compare. Alternatively the VR Style Dual LUT Mode for blending can be activated. Then the secondary image is blended with the first image using the transfer function.
DX Settings¶
Use the
to configure the quality settings for interactive 3D rendering.is recommended, but could require good GPU hardware for larger images.
For offline rendering
Lucid.Util.RenderDXConfig
should be used to configure the settings.