1. A method for performing driver assistance by means of a computerized system mounted on a moving vehicle, the computerized system including a camera and an image processor, the method comprising: programming the image processor for performing a first and a second driver assistance function; and capturing in real time a plurality of image frames of the environment in the field of view of the camera and transferring the image frames to said image processor; and during said capturing, setting a camera parameter to a first value by said first driver assistance function and setting said camera parameter to a second value by said second driver assistance function; wherein the camera parameter is an automatic gain control (AGC) and wherein the AGC alternately changes between at least two previously defined settings used respectively by the first and second driver assistance functions.