ZEISS Microscopy Knowledge Base
Help
ZEISS Microscopy 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.
    Small bright blue rounded square outline overlapping larger purple-blue rounded square outline on dark background
  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.
    Overlapping fluorescent tissue sections on black background; orange labeled DTScan_ID2, green with blue box and red pin

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.
    Orange fluorescent brain slice labeled DTScan_ID2 and a rotated green slice with blue corner handles and red pin

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.
    Orange fluorescent brain slice at right with a smaller rotated green slice in a blue selection box and a red pin
    Rotated green fluorescent brain slice in a blue transform box overlapping an orange fluorescent brain slice on black background

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.
    Rotated green brain slice with two red pin markers in a blue bounding box overlapping an orange fluorescent brain slice

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.
    Tilted white frame with green fluorescent section, red rectangle, corner handles, rotation icon and label New.04

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 Blue square icon with a left vertical light-gray bar and a small horizontal light-gray rectangle to its right.
  • To flip the image vertically, click on the Flip Vertically button Blue square icon with a centered horizontal light-gray rounded bar and a left vertical light-gray bar.
  • To flip the image stack in z direction, click on the Flip in Z button gray rounded square icon showing a white 3D cube and curved rotation arrow.

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.

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 Blue square icon with a left vertical light-gray bar and a small horizontal light-gray rectangle to its right to mirror the image horizontally, or click Blue square icon with a centered horizontal light-gray rounded bar and a left vertical light-gray bar 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 Non Image Data

  1. You have opened a ZEN Connect project with non-image data.
  2. Your non image data is toggled visible, see also Moving or Hiding Images.
  1. In the ZEN Connect tool or in the image view, right-click the non-image data and select Align Point Position. Alternatively, in the ZEN Connect tool, select the non-image data and select Align for the Alignment button and click it.
  2. You enter the alignment mode.
  3. In the image area, click at the position where you want to place the none-image data.
  4. Click on Finish.
  1. You have aligned your non image data.

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 Blue square icon with a left vertical light-gray bar and a small horizontal light-gray rectangle to its right.
  11. To flip/mirror the image vertically, click on Blue square icon with a centered horizontal light-gray rounded bar and a left vertical light-gray bar.
  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 White plus sign centered on dark blue rounded-square icon 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 White plus sign centered on dark blue rounded-square icon 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