using masks, aperture plates, spatial light modulators or spatial filters