A method and a system for separating an image signal into a set of image planes
in accordance with a control signal. The system comprises a selector module, an
edge processing module and a foreground/background separation module. The selector
module receives the control signal and produces a selector signal. The edge processing
module receives the selector signal and produces a decision signal. The foreground/background
separation module receives the image signal and the decision signal, and outputs
a foreground signal and a background signal, a representation of the current pixel
of the image signal being included in at least one of the foreground signal and
the background signal in accordance with the decision signal.