In the recent years, the image processing technology has developed quickly with the widening of image application
fields. The image processing has been an important and useful technique in the fields of image understanding and
computer vision. The image processing is meant to use some algorithms to process a poor-quality image, in terms of the
purpose that the processed image has higher definition and more understandability. According to the property of people’s
vision grey scale and structure, an image enhancement algorithm with restrain noise function is proposed, which defines a
new template to calculate gradient. This algorithm can not only enhance the vision effect of the image, but also can restrain
noise and enhance the detail signal. The effect of restraining noise is very good. On the other hand, the method can
enhance not only the grey scale image, but also the color image, not distorting the color.