Back to module list
Best focus stack
Description
Extract a Z-substack from an input stack based on an automatically-calculated best-focus slice. Best focus is determined using the local 2D variance of pixels in each slice. It is possible to extract a fixed number of slices above and below the determined best-focus slice.
Parameters
- Input image
- Type: InputImageP
- Default value: Image to extract substack from.
- Best-focus calculation
- Description: Method for determining the best-focus slice. "Largest mean variance" calculates the mean variance of each slice, then takes the slice with the largest mean. "Largest maximum variance" simply takes the slice with the largest variance.
- Type: ChoiceP
- Default value: Largest mean variance
- Choices:
- Largest mean variance
- Largest maximum variance
- Variance calculation range
- Description: Radius of filter for determining best focus stack. If "Calibrated units" is false, this value is in pixel units, but if true this value is in calibrated units.
- Type: DoubleP
- Default value: 1.0
- Calibrated units
- Description: Controls if the radius is specified in pixel (false) or calibrated (true) units.
- Type: BooleanP
- Default value: false
- Slices below best focus
- Description: Number of slices below the best-focus slice to include in the final substack.
- Type: IntegerP
- Default value: 0
- Slices above best focus
- Description: Number of slices above the best-focus slice to include in the final substack.
- Type: IntegerP
- Default value: 0
- Channel mode
- Description: 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.
- Type: ChoiceP
- Default value: Use single channel
- Choices:
- Use all channels
- Use single channel
- Channel
- Description: Channel to base the best-focus calculation on.
- Type: IntegerP
- Default value: 1