Measuring spatial coherence through the shadow of small obstacles