Skip to content

bgcalc

bgcalc(img, bg, msk, gain, sp, st)

Categories: Image corrections

Description

computes a background on a 1d signal where gain and sp and st are defined by: diff = difference to neighbors or bg estimate sigmap = weight for abs background value sigmat = constant weight gain for b += diff * gain img - source data bg - computed background msk - mask

Constraints

  • img.format == 'f'
  • img.ndim == 2
  • img.slow_axis == 0
  • bg.format == 'f'
  • bg.n == img.n
  • msk.format == 'B' or msk.format == 'b'
  • msk.n == img.n

Overloads

C function Condition
bgcalc always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)