No, you add coherence threshold in the valid pixel expression of the displacement to mask low coherence values.