← back to roto on ba3a.dev

TemporalMedian

The per-pixel median over time of equally sized frames, taken channel by channel. Whatever a pixel shows in most frames wins, so a figure that passes over a pixel in fewer than half the frames vanishes, and sensor noise on a still wall averages out. For an even number of frames the lower of the two middle values is taken, so every output channel is one a frame actually held.

Functions

Link copied to clipboard
fun of(frames: List<Raster>): Raster

The median of frames, which must all be one size.