Autofocus + Focus Surface

Autofocus + Focus Surface > Autofocus Settings

Defines the Z device settings to be used by the Autofocus + Focus Surface > Autofocus task.

Different autofocus (AF) settings may be defined for different acquisition methods. Settings of this task have many in common with the Devices > Auto Focus Setup command.

Requires:
Device: 

Stage Z

Select a method you will use:

Step by Step

This method moves the Z drive in steps within the defined range, captures images and evaluates their focus criterion. The Z position with the best focus criterion is used as focused.

Continuous (requires Nikon Ni or Ti2-E microscope)

This method is similar to Step by Step except that in this case, the step size depends on the camera frame rate. The camera takes pictures as fast as possible while the Z drive is moving within the defined range.

Cells.ai (requires: NIS.ai)

This option offers a fast continuous auto focus with the selected Z Device over the full Z range (Full Range) or a Short Range around the well bottom. It uses an AI-based criterion fine tuned on the typical cell lines.

Name

Name your autofocus setting.

Z Device

Choose the Z drive to be used for focusing. If you choose <fastest>, the Piezo Z will be used in as many cases as possible. If its range is not big enough, then the main Z device movement will be added to reach the required absolute Z.

Criterion

Defines which focus criterion is used:

  • Brightfield - standard contrast based criterion - for brightfield images

  • Fluorescence - suitable for fluorescence microscopy

  • Confocal - criterion based only on the intensity values. This is useful in confocal microscopy.

  • Yeast, Bacteria (Ph) - a criterion optimized for yeasts under phase contrast (Ph) microscope.

Use OC

Select the optical configuration to be used for focusing.

Offset Z after AF

This option may be useful in fluorescence applications for the cases where the auto focus algorithm produces offset (the system states it is focused but you would like to focus on some other objects within the image, which are blurry). After performing auto focus, the Z drive will move by the distance [µm] defined within this field.

Exclude Border

This function can be used to exclude the border of the image and use only the central part for focus. Width of the excluded border can be set in the edit box.

Move to Original Z on Failure

If autofocus fails, the Z drive moves to the original Z position.

Close Active Shutter during Stage Movement

The active shutter will close in times between acquisitions phases. Typically, this option is used to reduce the photo-bleaching effect on live cells.

Skip Focusing on Background (requires Background/Specimen detection to be set up)

Speeds up the focusing by omitting the background area. Please see: HCA/JOBS > Background Detection > Teach Background/Specimen Detection.

AF mode
Auto

Automatic focus mode, only the range shall be defined. The system calculates optimal step and whether 1 pass or 2 passes will be performed.

Manual

Manual focusing mode enabling further settings. The focusing range and step in the first and second pass can be defined manually.

Range

Define the total distance which the Z drive will use for auto focus.

Single pass

Single pass performs auto focus in one step. This is a standard auto focus method which can be used.

Two passes

This method is suitable when you are far out of focus. It is performed in two steps: Coarse and Fine.

Note

If the Continuous in range two-pass auto focus fails the reason may be:

  • Camera exposure time is not compatible (too short or too long) with the speed of your Z drive.

  • The automatically calculated coarse step is too large and the specimen is thin so it does not come into focus at all.

Try reducing the auto focus speed to Slow, adjust camera the exposure time, or use the Single pass mode.

Autofocus + Focus Surface > Fast Autofocus Settings

Defines the Z device settings to be used by the Autofocus + Focus Surface > Autofocus task for the fastest possible focusing

Use this task especially if the hardware requirements are met. It will speed up the focusing significantly.

Requires:
Device: 

Stage Z, Nikon Eclipse Ji or Nikon Eclipse Ti2 + a triggered camera.

Range, Absolute

Select a way the focusing range is specified and enter the required values.

Criterion

Select the focus criterion according to the type of experiment.

Automatic

A criterion suitable for the current light path will be selected automatically.

Brightfield

Uses DIA illumination.

Confocal

Uses a confocal microscope.

Fluorescence

Uses EPI illumination.

Closed Aperture Cells.ai, Opened Aperture Cells.ai

.ai-based brightfield criterions intended for a thin layer of cells in a PBS. Unlike the Brightfield criterion, they does not mis-detect scratches for cells. Specific hardware settings are required:

Closed Aperture

DIA illumination, aperture: 0.02.

Opened Aperture

DIA illumination, aperture: open (0.15 for 10x objective, 0.24 for 20x objective).

Brightfield Criterion

Select a criterion to be used if the Automatic option determines the current modality is brightfield.

See Fast Auto Focus and Continuous Scanning.

Autofocus + Focus Surface > Autofocus

Performs autofocus using the selected Autofocus settings.

Run the previously set autofocus settings on a series of slide samples which are changed manually.

Requires:
Device: 

Stage Z

Focus

Name your autofocus.

within

Specifies within which portion of the image the autofocus is performed (e.g. within the predefined points).

Note

If Autofocus task fails to focus, captured images will be labeled with Focus Failed flag and will be marked by a red circle in the Labeling view. Focus Fail flag will not be assigned if Z coordinate is modified by 10 µm or more after unsuccessful autofocus.

Autofocus + Focus Surface > Create Focus Surface

Calculates global focus surface from an existing set of Z positions. The Z positions must be defined beforehand e.g. by the Autofocus + Focus Surface > Assign Current Z to Point/Well/Point Set task.

If your sample holder has an uneven surface, create a focus surface from a few points to ensure that all samples on the sample holder are captured in focus.

Requires:
Device: 

Stage Z

Module: 

Stage

Name

Name your focus surface.

On

Select the source Z point set from which the surface will be calculated.

Compute Z-values from
Smooth interpolation surface

Any position on the resulting surface is a result of interpolation.

Nearest control point Z-value

This is not really a surface. In any XY position, Z value of the nearest existing XY point is used.

Autofocus + Focus Surface > Move to Focus Surface

Use this task on each XY position within a point loop to get the image into focus (or pre-focus).

Requires:
Device: 

Stage Z

Module: 

Stage

Name

Name of your task.

Preferred Z Device

If multiple Z-devices are present on your microscope system, this option sets the preferred device used for the Z motion.

Autofocus + Focus Surface > Offset Focus Surface

Modifies an existing Focus Surface by adding / subtracting an offset distance.

Use this task on each point for pre-focus and check every N-th point whether the focus has not shifted. If it has, shift (offset) the whole focus surface to match the current focus.

Requires:
Device: 

Stage Z

Module: 

Stage

Offset by

Offset your focus surface by a defined numeric value.

Autofocus + Focus Surface > Assign Current Z to Point/Well/Point Set

Assigns the current Z position to the selected XY position of a sample.

Use this task inside a loop after Autofocus + Focus Surface > Autofocus to pre-define Z positions for fast scanning.

Requires:
Device: 

Stage Z

Redefine Z on

Select a sample holder on which you want to set the current Z position.

Autofocus + Focus Surface > Escape Z

Escapes the Z drive to the lowest position.

Use this task to avoid objective collision with the sample or stage.

Requires:
Device: 

Stage Z

Autofocus + Focus Surface > Refocus Z

Uses the Z drive to perform refocus of the image.

Use this task whenever the image is blurry and needs to be in focus again.

Requires:
Device: 

Stage Z

Autofocus + Focus Surface > Get Current Z Position

Retrieves the current position of the Z device.

Move to the position saved by this task later on in the job with the aid of the Autofocus + Focus Surface > Move to Z Position task.

Requires:
Device: 

Stage Z

Name

Name of the task.

Autofocus + Focus Surface > Set Focus Position

Saves the current focus position.

Focus the image and then save the focus position using this task. Later on in the job move to this position using the Autofocus + Focus Surface > Move to Z Position task.

Requires:
Device: 

Stage Z

Name

Name of the task.

Autofocus + Focus Surface > Move to Z Position

Moves the stage to the specified Z position.

Move to a previously saved Z position.

Requires:
Device: 

Stage Z

Name

Name of the task.

Z Position

Position retrieved by the Autofocus + Focus Surface > Get Current Z Position task.

Preferred Z Device

If multiple Z-devices are present on your microscope system, this option sets the preferred device used for the Z motion.

Autofocus + Focus Surface > Move ACC

Moves the objective correction collar to the position set in the ACC Preset.

If image degradation occurs (due to optical aberration), this task can be used to move the correction collar to a position compensating for this problem.

Requires:
Device: 

Stage Z and an objective with a correction collar

Name

Name of your task.

ACC Preset

Preset carrying a correction collar position (see Figure 74, “ACC Calibration dialog window.”).

Autofocus + Focus Surface > Move to Predefined Position

Moves the stage to the specified predefined position.

Requires:
Device: 

Stage Z

Name

Name of the task.

Position

Predefined position.

Autofocus + Focus Surface > Auto Focus using AI

Performs a super-fast autofocus using a pre-trained AI network. It does not analyze a range of images so it focuses in few Z drive movements. It is trained to focus on cells with brightfield illumination.

Use this task for super-fast focusing instead of the standard auto focus if the required conditions are met: opened aperture 0.15 (10x objective) or 0.24 (20x objective), the expected focusing range is less than +-250 µm.

Requires:
Device: 

Stage Z, Objective 10x or 20x