Illumination Design in Vision-based Measurement Systems