Abstract:
A method and system for image processing comprising an opening for entrance of light for forming an image by the system; at least one optical element through which the light passes; a variable aperture operatively associated with the at least one optical element placed in the optical train at an image plane and comprising a plurality of settings comprising first mask settings for shielding portions of the light and second mask settings for selectively masking portions of the light that pass through the first mask settings; an imager, the at least one processor being operatively connected to the variable aperture and imager for controlling the passage of the light through the variable aperture by selecting one of plurality of first mask settings and associated second mask settings, obtaining image results using the settings, comparing image results obtained by the respective mask settings, and determining the optimal first mask setting.