Abstract:Image blending technology is one of the research hotspots in the field of image processing. The purpose of this technology is to achieve seamless blending of a specific object obtained from a source image with a target image. The display effect of tree images in a stereoscopic scene often affects the immersion of the stereoscopic scene. In order to improve the stereoscopic display effect of the stereoscopic tree image construction,this paper proposes a method of stereoscopic tree images blending based on environment perception. This method first uses the template matching method to obtain the multi-level disparity map of the tree object,and adjusts the disparity map after the blending in accordance with the position of the target image where the tree will blend to. Then adjust the color and brightness of the blending image by sensing the color and lighting of the target image. Finally solve the problem of object occlusion in the blending through depth calculation. The blending results show that this method can handle the occlusion relationship well. The three-dimensional trees constructed by this method have a sense of multi-layering. And the blending effect is natural.