Refactor the mask generator to use the various filter pieces.
One of the pieces should be a piece that accepts a frame generator and produces a mask.
The mask should have 0..1 values otherwise unscaled.
The mask generator proper can then do the rescale.
Refactor the mask generator to use the various filter pieces.
One of the pieces should be a piece that accepts a frame generator and produces a mask.
The mask should have 0..1 values otherwise unscaled.
The mask generator proper can then do the rescale.