Skip to content

Annotate 3D splines

Summary

Spines are useful for describing paths through your data. This tutorial describes how use the spline annotator to interactively add splines in a 3D image.

Instructions

  1. Open the spline_annotator.py example from the examples folder. The viewer is initialized in 3D rendering mode in plane rendering mode. We are viewing two 3D volumes, each with one plane being actively rendered.

    example opened

  2. Activate the plugin. Select the orange layer for the "image layer" and click the "activate" button.

    layer selected

  3. You can translate the rendered orange play along its normal vector by holding the shift key while clicking with the left mouse button and dragging the plane.

  4. You can add a spline by ctrl+left mouse button clicking on the rendered plane to add points to the plane. The annotator will fit a third order spline when 4 or more points have been added. If you don't want the spline to be automatically fit, you can uncheck the "automatically fit spline" checkbox. If you are not automatically fitting the spline, you need to click the "fit spline" button to manually initiate the spline fitting.

  5. You can add additional splines by advancing the "current spline index". Each spline is given a unique index. Points are added to the spline whose index is currently selected. Additionally, to make a spline that doesn't lie in a single plane, you can add points to mutiple planes by moving the rendered plane.