Background:In clinical surgery, the quality of endoscopic images is degraded by noise. Noise is mainly caused by blood, illumination changes, specular reflection, smoke, etc., which will significantly reduce the quality of the image in the occluded area. Affect the doctor's judgment, prolong the operation time and increase the operation risk.Methods:This paper proposes an improved weighted guided filtering algorithm to enhance endoscopic image tissue. An unsharp mask algorithm and an improved weighted guided filter are used to enhance vessel details and contours in endoscopic images. An overall scheme of endoscopic image processing is proposed, which includes detail enhancement, contrast enhancement, brightness enhancement and highlight area removal.Results:Compared with several other algorithms, it is better than other algorithms in maintaining edges and reducing halo, and its effectiveness is proved by experiments. The peak signal-to-noise ratio and structural similarity of endoscopic images obtained by the improved algorithm in this paper are the largest. The foreground-background value Detail Variance-Background Variance has been improved.Conclusion:Our algorithm has a stronger ability to suppress noise, and is more able to maintain the structure of the original endoscopic image, which improves the details of tissue blood vessels. This paper can provide guidelines for the development of endoscopy devices.