Applying temporal constraints to the dynamic stereo problem