The invention discloses an
underwater image enhancement method in combination with bilateral filtering and Retinex. The method comprises the steps of converting an
RGB color space of an input image toan HSV
color space; for a brightness component, filtering image noises in combination with the bilateral filtering, and separating out a reflective component and an
irradiation component based on
Gaussian center surrounding multi-scale Retinex for the denoised brightness component; for the separated
irradiation component, adjusting illumination by adopting
gamma correction to obtain a new
irradiation component; realizing fusion enhancement of the irradiation component and the reflective component based on a Retinex theory, thereby obtaining a brightness component after non-uniform illumination correction; recombining the enhanced brightness component with a
hue component and a saturation component, and converting the HSV
color space to the
RGB color space; calculating
grayscale value ratios of red and green channels to a blue channel, and remapping the
grayscale values of the three channels; and finally performing
histogram equalization on the R, G and B channels of the image to realize
image contrast enhancement. According to the method, the blue and green color deviation of the
underwater image is effectively eliminated, so that the
image contrast is improved; and the partial image noises are filtered, so that the
signal-
noise ratio of the image is increased.