Patent ID: 7388997

Claim:
A method of digital image processing for a digital image comprising of a plurality of imaging units, comprises the following steps: computing feature values by measuring a predetermined feature of the imaging units in the digital image; searching local peaks in one dimension of the feature values; determining each peak as either a local maximum or a local minimum, wherein the peak is determined to be a local maximum if the preceding and succeeding feature values are smaller than the peak, and determined to be a local minimum if the preceding and succeeding feature values are respectively larger than the peak; and adjusting the feature value of each peak to increase the difference between the peak and at least one of its preceding and succeeding pixels by providing an offset for each peak to increase the feature value of the local maximum or decrease the feature value of the local minimum, wherein the offset for each peak is computed according to a preset ratio of a difference between the respective feature values of the corresponding peak and a preceding peak.