p.desmear - Correct frame-transfer readout smear in planetary framing cameras.
Removes the smear signal accumulated during frame-transfer readout (common in Viking, Galileo SSI, Voyager images). The smear contribution per row is proportional to the image mean and the ratio of exposure time to readout time.
p.desmear corrects image smear caused by sensor readout during
spacecraft motion. In push-broom or TDI (time-delay integration)
cameras, finite readout time combined with spacecraft motion causes
each pixel to accumulate signal over a range of ground positions,
producing a motion blur (smear) in the along-track direction.
The correction models smear as a convolution with a rectangular
(boxcar) kernel of length smear_lines in the along-track direction
and deconvolves using a recursive filter. The smear length in pixels
depends on the frame rate, line time, and spacecraft velocity.