Focus stack (local)

Focuses a Z-stack into a single plane using the StackFocuser ImageJ plugin.

Description

Focuses a Z-stack into a single plane using the StackFocuser ImageJ plugin. Best focus position is determined at each 2D pixel location, with the final image being comprised of the pixels from the slice with the best focus at that location. Each channel and timepoint is focused separately. Prior to application, the focus map can be median filtered to remove outliers. Height maps can be stored and used in additional "Focus stack (local)" instances, thus allowing height maps to be edited prior to use.

Uses the StackFocuser plugin created by Mikhail Umorin (source code downloaded on 06-June-2018).

Parameters

ParameterDescription
Input imageImage stack from the workspace which will be focused into a single plane.
Output mode
Output focused imageOutput focused image which will be added to the workspace. This image will have the same number of channels and timepoints as the input image, but will always only have a single Z-slice.
Output height image
Use existing height imageWhen selected, the height map image will be loaded from the workspace ("Input height image" parameter) rather than being calculated based on the input image.
Input height imageThe name of the height map image in the workspace if the height map has been pre-determined.
RangeIf calculating a new height image ("Use existing height image" parameter isn't selected), the best focus slice at each pixel will be based on pixel intensities within this range (specified in pixel units).
Smooth height mapWhen selected, the height map will be passed through a 2D median filter (range specified by "Range" parameter) to remove outliers.