1. A method for generating a mask for use with a light measurement system that includes a light source for projecting light onto an object, and an imaging sensor for receiving light reflected from the object, said method comprising: determining a profile of the object to be inspected; and generating an electronic mask based on the determined object profile, wherein the electronic mask has an electronic opening having a profile defined to substantially match the determined object profile as viewed from one of the light source and the imaging sensor.