A method and device of feature enhancement for digital image processing. A
predefined feature in one dimension of the image is searched to obtain
several peaks, and each peak is either a local maximum or local minimum.
Each peak is enhanced by adding an offset to increase the local maximum
or decrease the local minimum. The offset of each peak is computed by
calculating the difference between each peak and the preceding peak, then
multiplying by a preset ratio.