Contents
correct_background¶
This module contains two functions used in the samples module to correct background images.
-
microscope_automation.samples.correct_background.
fixed_pattern_correction
(image, black_reference)[source]¶ Correct for fixed pattern with black reference image.
Cameras have faulty pixels that show up as a fixed pattern. To correct the image we use a reference image acquired under the same conditions as the image but with light blocked to reach the camera. We subtract the reference image from the image
- Input:
image: one channel image to be corrected
black_reference: correction image acquired with identical exposure settings but camera blocked
- Output:
corrected_image: image after correction
-
microscope_automation.samples.correct_background.
illumination_correction
(image, black_reference, illumination_reference)[source]¶ Correct for uneven illumination.
- Input:
image: one channel image to be corrected
black_reference: correction image acquired with identical exposure settings but camera blocked
illumination_reference: correction image acquired without sample (brightfield) or dye solution (fluorescence)
- Output:
corrected_image: image after correction