pyopia.background

pyopia.background#

Background correction module (inherited from PySilCam)

Functions

correct_im_accurate(imbg, imraw[, divide_bg])

Corrects raw image by subtracting or dividing the background and scaling the output

correct_im_fast(imbg, imraw)

Corrects raw image by subtracting the background and clipping the ouput without scaling

ini_background(bgfiles, load_function)

Create and initial background stack and average image

shift_and_correct(bgstack, imbg, imraw, ...)

Shifts the background stack and averaged image and corrects the new raw image.

shift_bgstack_accurate(bgstack, imbg, imnew)

Shifts the background by popping the oldest and added a new image

shift_bgstack_fast(bgstack, imbg, imnew)

Shifts the background by popping the oldest and added a new image

Classes

CorrectBackgroundAccurate([...])

pyopia.pipeline compatible class that calls: pyopia.background.correct_im_accurate() and will shift the background using a moving average function if given.

CorrectBackgroundNone()

pyopia.pipeline compatible class for use when no background correction is required. This simply makes `data['im_corrected'] = data['imraw'] in the pipeline. This simply makes `data['im_corrected'] = data['imraw'] in the pipeline.