Skip to content

How to position layers with the layer manipulator

Summary

Sometimes objects in your data have a systematic shift relative to one another. If you need to position an entire dataset, you can use the layer manipulator. This article describes how to interactively position a layer using the layer manipulator.

Instructions

  1. Open the layer_manipulator.py example from the docs. The viewer is initalized in 3D rendering mode. You can click and drag in the canvas to rotate the view. Note that the two layers are the same image, but not aligned.

    layers loaded

  2. Select the "image_1" layer in the layer manipulator plugin. We will move layer "image_1" (the green one) to be aligned with layer "image_0".

    select layer

  3. Activate the layer manipulator plugin.

    activate the plugin

    When the plugin is activated, you will see the manipulator at (0, 0, 0) on image_1.

    plugin activated

  4. Click and drag the manipulator to align the rows. Since the layers are being rendered with additive blending, the image turns white where the layers are overlapping.