Shading Correction

Shading correction is a method which can correct illumination inhomogeneities of the captured images. How does this work? First of all, a β€œshading image” must be obtained. It is an image which represents illumination intensities within the field of view.

As you can see in the image above, the illumination intensity is 100% in the center but gets darker near the edges. This can be corrected by applying the shading correction which will equalize intensities of the resulting image based on the captured β€œshading image”.

Simple Shading Correction

  1. Run the Acquire > Shading Correction Panel command to display the panel.

  2. Select the Simple mode in which one correction image is used for all optical configurations.

  3. Click the Capture button, a dialog appears.

  4. Find an empty clean part of the glass and move slightly out of focus.

  5. Select image modality (background brightness) in the dialog.

  6. Capture multiple images (10 is reasonable) by pressing the Next >> button. It is optimal if you move the stage between the acquisitions. Images will be merged together to form the final correction image. The Background Variation parameter is taken into account..

  7. Click the Finish button to save the correction image.

  8. Start using the correction by clicking the Apply Shading Correction to All Acquisitions button.

Shading Correction per Optical Configuration

  1. Run the Acquire > Shading Correction Panel command to display the panel.

  2. Select the per Optical Configuration mode in which one correction image is used for each optical configuration.

  3. Click the ... button in the Capture Shading Image section of the dialog and select the optical configuration for which you want to capture the correction image.

  4. Click the Capture button and proceed in the same way described above (Simple Shading Correction)

  5. Start using the correction by clicking the Apply Shading Correction to All Acquisitions button.

Removing Dust from Camera Chip Using Shading Correction

If you have dust or dirt on the camera chip, the Shading Correction panel can be used to compensate it.

  1. Run the Acquire > Shading Correction Panel command to display the panel.

  2. Find an empty clean part of the glass and defocus the image

  3. Run the Acquire > Capture command to capture the image. Make sure the captured image stays active.

  4. Select the camera or optical configuration for which the correction image will be used In the Shading Correction panel.

  5. Click the Use Current Image as Shading Image button at the bottom.

Shading Correction Panel

Apply Shading Correction to All Acquisitions

This button turns the shading correction on/off on the current image (Simple) or on the current optical configuration (per Optical Configuration).

Simple

shading correction is applied globally. If multiple cameras are used, select the one used for capturing the shading image in the Camera drop-down menu.

per Optical Configuration

applies the shading correction to the currently selected optical configuration. Use the ... button to select an optical configuration and use Capture to capture the shading image.

Help

Opens this help page.

Capture

Opens the Capture Shading Image dialog. The information box gives advice on how to properly capture a shading image. Follow the instruction and click Next >> to capture the image. Repeat the capture multiple times (10 times optimally) to capture an accurate shading image, then click Finish.

Correction

Select the type of background to be corrected. It is important for the algorithm to know whether the background is bright, dark, or neutral.

Background Variation

This value determines the level of detail of the correction algorithm (smoothness of the curve). Homogeneous shading such as in our example above has low variability, so the default value (10) should work fine. Higher values are suitable for more variable shading images. The range is from 5 to 50.

Preview

The drop-down contains a list of captured correction images. In the Simple mode, the correction image has the name of the camera (there can be two items if you have two cameras). In the per Optical configuration mode, each correction image carries the name of the optical configuration used during acquisition. Once you select a correction image, its preview appears in the Shading Image tab. You can:

  • Open it to the main window by the button.

  • Delete it from the list by the button.

  • Examine its intensity profile at the bottom of the panel. Below the preview area there is a set of buttons for changing the rotation of the profile line providing data to the intensity graph below. The profile line can be moved manually using the mouse.

  • Test the correction algorithm on the current image by switching to the Test On Current Image tab and clicking the Test button. The profile graph changes accordingly.

This button deletes all shading correction images for both modes.

Use Current Image as Shading Image

If the user has a previously saved shading image, it can be loaded into this dialog and used as a shading image.

Apply Shading Correction to Current Image

Applies the currently selected shading image to the currently opened image.