Light filtering is a typical need in machine vision measurement applications. For instance, you may need to avoid possible interactions between your LED illuminator and other light sources in an industrial environment.
Moreover, sun light is very frequently causing errors in imaging systems due to unexpected reflections from the surface of the parts being measured.