Optical interference is generated by often time-varying boundary surfaces between flowing fluids with different refractive indices, such as a boundary surface between water and air with an open water surface. Optical flow measurement processes through boundary surfaces are affected by such disturbances, which can lead to significant measurement deviations or may even completely prevent the performed measurements. The present invention helps to solve this metrology problem by proposing an arrangement (1, 1a, 1') and method for instantaneous and hardware-based correction of optical disturbances caused by undulating boundary surfaces (211). To this end, a wavefront modulator (5) is introduced into the beam path of the optical measuring method, which modulator actively compensates for optical disturbances by means of a control system. The invention enables light flow measurements through undulating boundary surfaces. It is not limited to a single flow measurement technique, but can be implemented in all known imaging methods. The invention can be used in a variety of technical applications. Some examples include: liquid-air boundary surfaces, such as in water channels with open surfaces; thin-film flow, such as in process technologies for cooling, purification, or distillation; fluid jets, whose surfaces undulate on all sides; Measurement of air bubbles present in suspended droplets or droplets or liquids adhered to opaque substrates. The invention is also suitable for correcting disturbances due to temperature gradients in combustion, pressure gradients such as in pressure fluctuations or concentration gradients such as in electrolytic processing.