Precision Beam Shaping by Spatial Frequency Filtering