The invention belongs to the technical filed of
computer vision and especially relates to brightness enhancement and
edge enhancement of a
grayscale image. The method specifically comprises the following steps: estimating global brightness and determining
algorithm self-adaption parameters, generating a brightness mapping graph of the images and carrying out calculation to obtain a brightness enhancement image and carrying out
edge enhancement processing. The method is characterized by, to begin with, estimating the self-adaption parameters according to the brightness distribution conditions of global dark areas; then, carrying out global brightness enhancement
processing on the images and obtaining the modulation mapping graph of the whole picture through a
modulation function, and carrying out calculation to obtain brightness enhancement result; and finally, realizing
edge enhancement based on a dimension-self-adaptive
Gaussian difference model, the model dimension being influenced by
contrast ratio, and therefore, bright areas can be enhanced with finer texture information, and the dark areas can be enhanced with larger contour information. The method can enhance overall brightness and contrast of the
grayscale images effectively, and the self-adaption characteristic can play a very good effect on edge enhancement of the bright and dark areas.