Systems and methods for operating a vision system to provide a desired illumination
wavelength for an inspection operation on workpiece include illuminating a workpiece
using narrowband illumination from a continuously variable filter, and modifying
the narrowband illumination and evaluating resulting images until a narrowband
illumination is found that reliably supports the inspection operation. The initial
narrowband illumination may be based on spectral sensing.