BigStitcher Global optimization
After calculating and previewing pairwise shift results you can proceed to the global optimization. Since the position of a tile with multiple neighbors is usually not unambiguously defined by the pairwise shifts, this step will iteratively update the transformations of the tiles until a consensus is reached that minimizes the deviation of each tile from the locations proposed by the calculated pairwise shifts.
Furthermore, we apply a few tweaks to improve the results:
- If the global optimization does not find an alignment with sufficiently low error, we will automatically drop disagreeing links from the tile-network and re-run the process. In the worst case, this is repeated until we end up with a minimal spanning tree of the link network.
- If there are multiple connected components in the link network (e.g. distant colonies of cells with large stretches of background between them where we cannot calculate reliable pairwise shifts), we will first align the components using the calculated pairwise shifts and then align the "islands" relative to each other using the locations defined in the metadata (or through manual pre-alignment).
The simple mode of global optimization does not require any user input, as we use reasonable default values for all parameters. The simple global optimization is run automatically if you click through the Stitching wizard (in no-expert mode) or can be accessed from the main menu under . ›
This will immediately update the tile locations in the BigDataViewer, if it is open. If you want to un-do this step, you can click in the main menu. ›
If you click on or proceed to the global optimization from the Stitching wizard in expert mode, you will be asked for a few extra parameters before the your views are aligned. ›
Optimization strategy and convergence criteria
In the first dialog, you will be asked for the optimization strategy to apply:
- Simple One-Round: run the global optimization once, taking all the links in the tile-network (that were not filtered out previously) into consideration. This is the fastest strategy, but it might lead to bad results if you have not carefully filtered out bad pairwise shifts or if there are multiple unconnected regions.
- One-Round with iterative dropping of bad links: run the optimization iteratively, removing the worst link in the network until the average error of the tiles falls below certain thresholds (see below). This strategy is more robust against a few "bad" links, but will not move unconnected regions relative to each other.
- Two-Round using Metadata to align unconnected Tiles: first, run Two-Round using Metadata to align unconnected Tiles and then use shifts from metadata to align connected components relative to each other (while keeping the results from the first round within a component).
If you opt for any of the iterative strategies, you have to consider the two error thresholds, which determine when to stop dropping bad links and re-doing the optimization:
- relative error threshold: the optimization will be repeated until the biggest error of any tile is smaller than the average error times he threshold.
- absolute error threshold: the optimization will be repeated until the average error of the tiles
Note that both stopping conditions have to be met for the optimization to finish.
- show expert grouping options: click this to show expert grouping options in the next dialog (see below).
Expert view grouping
In the next two dialogs, you will be asked which views to include in the global optimization. They are the same as in BigStitcher_Advanced_stitching.
- In the first dialog, you can select whether all instances of an attribute or just the currently selected views should be processed. For example, in the example below, we align all Channels, Tiles and Illuminations, but only for the currently selected timepoint and angle.
- Select how to process the different attributes. For example, in the figure below, we will treat TimePoints and Angles individually, which means that we will run the global optimization separately for each time point and angle. Likewise, we group Channels and Illuminations, meaning that we will align all channels and illumination directions for a tile the same way. Finally, we compare Tiles, which means that tiles will be aligned relatively to each other.
Finally, you will be asked which view groups to fix in each subset that you chose to treat individually. The selected groups will be left where they are and all others will be aligned relative to them.
Note that if you select multiple fixed groups, it might lead to worse results as the original location (e.g. from metadata) might not agree with the calculated relative position of the views.
Normally, the best idea is to select one view group to fix, using it as a starting point that all other views will be moved relative to.
Go back to the main page