Focus stack (global)
Extract a Z-substack from an input stack based on either manually-selected slices, or an automatically-calculated best-focus slice.
Description
Extract a Z-substack from an input stack based on either manually-selected slices, or an automatically-calculated best-focus slice. For automated methods, best focus is determined using intensity statistics (e.g. largest variance) of all pixels in each slice. When in manual mode, only the best focus slice for the first and last timepoints need be specified (all others will be estimated using polynomial spline interpolation); however, more frames can be specified if preferred.
Irrespective of the calculation method (manual or automatic), it's possible to extract a fixed number of slices above and below the determined best-focus slice.
Parameters
Parameter | Description |
---|---|
Input image | Image to extract substack from. |
Output mode | Controls whether the best focus positions are calculated and applied (creating a new image) or simply calculated. In both cases, statistics for the best focus position (mean, median, minimum, maximum and standard deviation of slices) are stored as measurements associated with the input image. |
Output image | Substack image to be added to the current workspace. |
Best-focus calculation | Method for determining the best-focus slice.
|
Relative start slice | Index of start slice relative to determined best-focus slice (i.e. -5 is 5 slices below the best-focus). |
Relative end slice | Index of end slice relative to determined best-focus slice (i.e. 5 is 5 slices above the best-focus). |
Reference image | If using manual selection of best focus slices, this is the image that will be shown to the user. While it doesn't need to be the input image (the one the output substack will be generated from), it must have the same number of slices and timepoints as the input. |
Calculation source | When using automatic best focus slice determination this controls the image source:
|
External source | If using a separate image to determine the best focus slice ("Calculation source" set to "External"), this is the image that will be used for that calculation. |
Channel mode | How many channels to use when calculating the best-focus slice. "Use all channels" will use all channels, whereas "Use single channel" will base the calculation on a single, user-defined channel. |
Channel | Channel to base the best-focus calculation on. |
Smooth timeseries | Apply median filter to best focus slice index over time. This should smooth the transitions over time (prevent large jumps between frames). |
Smoothing range (odd numbers) | Number of frames over which to calculate the median. If the specified number is even it will be increased by 1. |