ZEISS Knowledge Base
Help
ZEISS Knowledge Base

Alignment

In a ZEN Connect project, you can manually align images in your workspace to correct their position or size with respect to the samples. To do so, you activate the alignment process and start aligning image data. Within a ZEN Connect project, you can also calibrate your system using a sample holder with fiducial markers by moving between the markers and confirming their positions.

Activating the Alignment Process

The alignment process lets you align your current session with fiducial marks or previous images. You can align image data manually.

You should create a new session any time the alignment of the sample in the microscope has been disturbed.

  1. A ZEN Connect project is loaded.
  1. In the Layer View, or in the Project View, select the image you want to align. Alternatively, you can select a region to select a couple of images.
  2. The image is marked with a square in each frame corner.
  3. As long as the alignment process is not activated, this is indicated with a little lock next to the cursor.
  4. Right-click the selected image and select Align Data.
    Alternatively, right-click the image(s) in the ZEN Connect tool and select Align Data. You can also select Align for the Alignment button and click it.
  1. You have activated the alignment process for one or more images. The Alignment Tab below the Image View is displayed.
  2. You can start aligning image data. If you start an alignment on a session node, the set alignment is used for all current and future images of the session. You can use this if you change your sample between different systems and want to align their coordinate systems to each other.

Aligning Image Data

In the alignment process, you have various options to align image data. Note that you can change the alignment mode during the alignment process. The alignment edits you have made are preserved, but you have to restart the pinning process if you have inserted any pins before changing the mode.

Note: The alignment process can be executed multiple times. Each time you run the alignment process, the end result of the last alignment is used as the starting point for the new alignment. If the initial image was far out of alignment at the start, it is easiest to do the alignment process once roughly, and then do the alignment process a second time with more precision. The second alignment will use the first alignment as a starting point, and will allow you to establish a more precise alignment quickly.

  1. You have loaded a ZEN Connect project and activated the alignment process.
  1. In the Alignment tab, select one of the following alignment modes and the region you want to align.

Translate Only

  1. Click and drag with the mouse to translate the image you are aligning with respect to everything else.
  2. You can zoom in and out with the mouse wheel, or press and hold the CTRL key to pan while you are in the process of aligning the image.

Translate and Rotate Only

  1. Right-click at the location you have lined up to insert the first pin, a red and grey pin icon. The pin locks the image to the reference at this location. Press the DEL key to remove the last pin you inserted.
  2. After you insert the first pin, your input will rotate the item around the first pin, when dragging it with the mouse.

Translate, Rotate and Scale Only

  1. If one of the images is smaller than the other, you can scale it. Right-click to insert a pin, and drag with the mouse to scale and rotate the image.

Translate, Rotate, Scale and Shear

  1. Right-click to insert a second pin, and drag with the mouse to shear the image.
  2. After you insert the second pin, your input will also stretch and shear the item.

Image data from microscopes should not need to be stretched or sheared to perform alignment. If you need to provide much input after inserting the second pin, this might be an indication of other problems, such as equipment calibration issues.

Alignment Handles

  1. If you select Alignment Handles, you can use handles to rotate, translate, and scale the image.

Flipping the image horizontally and vertically

You can flip your image, to mirror it.

  • To flip the image horizontally, click on the Flip Horizontally button .
  • To flip the image vertically, click on the Flip Vertically button .
  • To flip the image stack in z direction, click on the Flip in Z button .

Reset alignment

  1. Click on the Reset button to reset the alignment you performed.
  2. The alignment is reverted as it was when you started aligning. The alignment mode is still activated.

Cancel alignment

  1. Click on the Cancel button to reset the alignment you performed.
  2. The current alignment is cancelled and reverted to the alignment in place before you started the alignment mode. The alignment mode is not activated any longer.

Finish alignment

  1. Click on the Finish button to finish the alignment mode and to save the alignment information.

Clear alignment

  1. Click on the Clear button.
  2. The session is restored to its un-aligned state.

Aligning Images in Z Direction

In ZEN Connect you can not only align your images/ sessions in x and y direction, but also in z.

  1. You have opened a ZEN Connect project containing images/ z-stacks with z information.
  1. Select the image or session you want to shift in z direction.
  2. In the ZEN Connect tool, select Align for the Alignment button and click it. Alternatively, right click on the image and select Align Data.
  3. The Alignment Tab is displayed below the Image View.
  4. For Alignment Mode select 3D Alignment in the dropdown list.
  5. For Relative Z Offset set the value for your shift in z direction.
  6. Click on Finish.
  1. You have now aligned your data in z direction. For an illustration of the alignment see Example for Z Alignment.
    Note that for the z alignment the view of the aligned stack remains the same, whereas the view of the other stacks changes.

Setting an image to the current Global Z

You can also set the center of a z-stack to the currently selected z-position of the Global-Z slider.

  1. You have opened a ZEN Connect project containing images/ z-stacks with z information.
  1. Activate the Global-Z slider and move to the z-position where you want your image to be placed.
  2. Select the image you want to shift in z direction.
  3. In the ZEN Connect tool, select Align for the Alignment button and click it. Alternatively, right click on the image and select Align Data.
  4. The Alignment Tab is displayed below the Image View.
  5. For Alignment Mode select 3D Alignment in the dropdown list.
  6. On the Alignment tab, click on the Set to current Global-Z button.
  7. Click on Finish.
  1. You have now set the center of your z-stack to the currently selected Global-Z.

Example for Z Alignment

This chapter serves as an illustration of how and what is happening for z alignment in ZEN Connect. Consider the following situation:


This image illustrates two z-stacks with five planes and different z coordinates (with µm as unit). The green line simulates the position of the Global-Z slider. Here, the Correlative Workspace would show you plane 1 of the first stack and an empty frame where the second stack would be because the Global-Z is beyond the range of the second stack.

Aligning Stack 2 in z direction

Now the second stack is aligned according to the workflow described in Aligning Images in Z Direction with a Relative Z Offset of 3µm. The result then is the following:

All z planes of Stack 2 are shifted by 3µm and now the z-plane 1 of Stack 1 and z-plane 3 of Stack 2 would be visible in the Correlative Workspace.

Aligning the whole session in z direction

Now the whole session with both images is shifted with a Relative Z Offset of 4µm.

Now the first stack is out of range of the Global-Z slider, so the Correlative Workspace would show you plane 1 of Stack 2 and an empty frame where Stack 1 is located.

Rotating a Z-Stack

In the alignment mode you can also perform a three dimensional rotation of a z-stack.

  1. You have opened a ZEN Connect project.
  1. Select the z-stack you want to rotate.
  2. In the ZEN Connect tool, click on Align. Alternatively, right-click the image and select Align Data.
  3. The Alignment Tab below the Image View is displayed.
  4. For Alignment Mode, select 3D Alignment.
  5. Activate the checkbox Apply 3D Rotation.
  6. The Manipulation Controls for rotation are activated.
  7. Use the respective sliders or input fields to rotate the z-stack around the x, y, or z axis. Alternatively, you can use the View Cube Control to rotate the stack interactively.
  8. Click on Finish.
  1. You have now rotated the selected z-stack around the respective axis.

Aligning Images in the ZEN Connect 3D View

With the ZEN Connect 3D view you can display and align two z-stacks as 3D volumes. This alignment mode allows a translation of the volumes in x, y and z.

  1. You have opened two z-stack images in the ZEN Connect 3D view or directly in 3D alignment mode, see Opening Images in the ZEN Connect 3D View.
  1. In the Connect 3D tab, click the button for the volume you want to align, e.g. Align Volume 1. If you opened the 3D view directly in alignment mode, one volume is already selected for alignment.
  2. You are in alignment mode and the Alignment tab is displayed.
  3. To mirror the selected image, go to the Alignment tab and click to mirror the image horizontally, or click to mirror it vertically.
  4. In one of the 2D image views, shift the volume via drag and drop and align it with the second volume as reference.
  5. The changes are automatically updated in all views, including the 3D view.
  6. If you are satisfied with your alignment, go to the Alignment tab and click Apply.
  7. Your alignment changes are saved in the ZEN Connect project.

Aligning Images in the Manual Alignment Wizard

  1. You have opened a ZEN Connect project.
  1. In the correlative workspace or in the ZEN Connect tool, select the image(s) you want to align.
  2. In the ZEN Connect tool, for the Alignment button, select Manual Alignment Wizard and click on it.
  3. The ZEN Connect Alignment Wizard opens.
  4. To translate the selected image(s), set the distance in x and y direction with the Translate parameter section on the left.
  5. The translation is immediately displayed in the Image View.
  6. To scale the image, set the scaling factor in x and y in the Scale section.
  7. The scaling is adjusted according to the input.
  8. To rotate the image, first select the Rotation Center and then enter an Angle. The current rotation center is represented in the image by a pin.
  9. The selected image(s) is/are rotated.
  10. To flip/mirror the image horizontally, click on .
  11. To flip/mirror the image vertically, click on .
  12. If you want to shear your image, activate Enable.
  13. Additional shearing pins are displayed in the image. The two pins that form the "baseline" for shearing a connected by a line.
  14. Use the two pins to position the baseline and then move the pinpoint to shear the image.
  15. Click on Finish to save the alignment and close the wizard.
  1. You have aligned the selected image(s) in the ZEN Connect project.

Alignment Handles

You can also use the alignment manages of the selected image(s) to translate, scale, and rotate the image.

View Options

You can use the available options of the Dimensions tab to adjust the image view (e.g. use the Global-Z slider). The image which is adjusted by the Dimensions tab can be selected in the tree view of the Select Node For Dimensions tab.

Aligning Images in the Point Alignment Wizard

  1. You have opened a ZEN Connect project.
  1. In the correlative workspace or in the ZEN Connect tool, select the image(s) you want to align.
  2. In the ZEN Connect tool, for the Alignment button, select Point Alignment Wizard and click on it.
  3. The ZEN Connect Point Alignment Wizard opens.
  4. In the list on the left, use the button to add as many points as necessary for your point alignment.
    With one point only a translation operation is possible, with two translation and rotation, and three or more points enable all transformations.
  5. In the Algorithm dropdown list, select the alignment operations you want to perform.
  6. Click on Draw for the first point.
  7. You enter the drawing mode for the first point.
  8. In the Image Window on the left, click to set the point in your image(s) (Subject point).
  9. In the Project Window on the right, click to set the corresponding location for this point in the project (Reference point).
  10. Both color makers in the table are green and the first point for the alignment is set successfully.
  11. Repeat these three steps for every point you add/need.
  12. If you want to redraw a point pair, click on Redraw and click to set the new positions in both windows.
  13. Click on Next.
  14. The second step of the wizard opens. It displays a preview of the final alignment result and values for the parameter changes.
  15. If you want to change the alignment, click on Back to get back to the previous step. Otherwise, click on Finish to save the alignment and close the wizard.
  1. You have aligned the selected image(s) in the ZEN Connect project.

Aligning Images in the 3D Point Alignment Wizard

  1. You have opened a ZEN Connect project.
  1. In the correlative workspace or in the ZEN Connect tool, select the image(s) you want to align.
  2. In the ZEN Connect tool, for the Alignment button, select Point Alignment 3D Wizard and click on it.
  3. The ZEN Connect 3D Point Alignment Wizard opens.
  4. In the left image window (Tomo3D view), select the 2D image view you want to use from the dropdown as points for alignment can only be set in the 2D views.
  5. In the list on the left, click to add as many points as necessary for your point alignment.
    With one point only a translation operation is possible, with two translation and rotation, and four or more points enable all transformations.
  6. In the Algorithm dropdown list, select the alignment operations you want to perform.
  7. Click Draw for the first point.
  8. You enter the drawing mode for the first point.
  9. In the Image Window on the left, click to set the point in your image(s) (Subject point).
  10. In the Project Window on the right, click to set the corresponding location for this point in the project (Reference point).
  11. Both color makers in the table are green and the first point for the alignment is set successfully.
  12. Repeat these steps for every point you add/need.
  13. If necessary, use the controls in the Dimensions tabs, e.g. to switch to a different z-slice to set the points on specific z-levels.
  14. If necessary, change the left image view via the dropdown to add or check points in other 2D image dimensions.
  15. The view changes to the selected 2D image dimensions.
  16. If you want to redraw a point pair, click Redraw and click to set the new positions in both windows.
  17. Click Next.
  18. The second step of the wizard opens. It displays a preview of the final alignment result and values for the parameter changes.
  19. If you want to change the alignment, click Back to get back to the previous step. Otherwise, click Finish to save the alignment and close the wizard.
  1. You have aligned the selected image(s) in the ZEN Connect project.
Impressum
Carl-Zeiss-Strasse 22
73447 Oberkochen
Germany
Legal