A method for optimizing the gain of ultrasonic image comprises: S201: acquiring a tissue image and a noise image data in the same condition S202: denoising the tissue image by the noise image S203: identifying the tissue area in the tissue image S204: determining whether or not the percentage of the tissue area in the tissue image exceeds a set threshold condition S205: calculating the overall gain and TGC curve of the tissue image by selecting corresponding method S206: applying the TGC curve and overall gain to the tissue image. The method for optimizing the gain of ultrasonic image is employed on a plurality of different kinds of ultrasonic images including both conventional B-mode imaging and contrast imaging, which could not only ensure the lossless display of the image information, but also keep the brightness of the optimized image uniform and consistent. Also disclosed are a method for optimizing the gain of ultrasonic contrast imaging, a device for automatic optimizing the gain of ultrasonic imaging and an ultrasonic imaging system. In the method for optimizing the gain of ultrasonic contrast imaging and the device for automatic optimizing the gain of ultrasonic imaging, the brightness of the contrast images for different individuals are substantially the same after gain optimization, and scanning efficiency is improved.Linvention concerne un procédé pour optimiser le gain dune image ultrasonore comprenant les étapes suivantes : S201 : acquérir une image de tissu et une donnée dimage de bruit dans les mêmes conditions S202 : débruiter limage de tissu par limage de bruit S203 : identifier la zone de tissu dans limage de tissu S204 : déterminer si le pourcentage de la zone de tissu dans limage de tissu dépasse ou non une condition de seuil établie S205 : calculer le gain global et la courbe TGC de limage de tissu en sélectionnant la méthode correspondante S206 : appliquer la courbe TGC et le gain global à limage de tissu. Le procédé doptimisation du gain dune