Patent ID: 7283676

Claim:
A method for identifying objects in a digital image included in a sequence of images, comprising the steps: comparing luminance values of a current digital image with at least one threshold value in order to create, on the basis of the comparison, a current binarized image; calculating a quality measure for the current binarized image; and updating, on the basis of said quality measure, said at least one threshold value for use in binarization of a subsequent image, wherein said steps are included in a control loop each iteration of the control loop comprising: retrieving the current image; estimating a contrast distribution of the current image; calculating said at least one threshold value, based on said contrast distribution and a contrast depth factor calculated during a preceding iteration; creating the current binarized image on the basis of said at least one threshold value; calculating the quality measure of the current binarized image; calculating an error between a set value and the quality measure; and calculating a new contrast depth factor based on the preceding contrast depth factor and said error, and wherein the control loop operates with essentially constant poles.