| With the development of network technology,the digital protection of ancient buildings urgently needs to be carried out,and in the digital protection of ancient buildings,the way of displaying ancient building information through spherical panoramic images is gradually promoted.The virtual scene constructed by spherical panoramic image has great advantages in drawing speed and scene realism,which can not only make the scene data lightweight,but also simplify the established virtual scene,and provide clear reference data for the protection and restoration of ancient buildings.Therefore,this paper mainly studies the splicing technology based on spherical panoramic image,which provides important support for the protection of ancient buildings through digital technology,and reconstructs the images of ancient buildings from the software algorithm side.The main research content of this paper is divided into the following parts:(1)Aiming at the problem that there are many wrong matching points when using traditional registration algorithms to register images of complex ancient building scenes,this paper optimizes the SIFT algorithm and proposes a SIFT registration algorithm based on slope consistency.Compared with the traditional SIFT,SURF and ORB registration algorithms,this method can eliminate most of the false matching points and retain the correct feature point pair matching to achieve accurate and efficient image registration.(2)In view of the obvious gap or chromatic aberration of the image fusion algorithm due to the difference in brightness between images,this paper improves the traditional image fusion algorithm based on wavelet transform,extracts the high-frequency information of the image after wavelet decomposition,introduces visual salience detection,fuses the high-frequency images of the two images with different weight ratios,and finally restores the image through the wavelet inverse transform.The optimization algorithm eliminates the problem of chromatic aberration,makes multiple images well integrated,restores the overall morphology of ancient buildings more realistically,and improves the quality of panoramic image stitching.(3)This paper designs a digital protection system for ancient buildings based on spherical panoramic image stitching technology,and develops a variety of functions to ensure the practicality and interactivity of the system;And comprehensively record and display the historical value and all information of ancient buildings,its Chinese piece browsing function to realize the results of spherical panoramic image synthesis,and record the internal information of ancient buildings in detail through hot spot markers.This system has been applied to Datong Huayan Temple,Yingxian Wooden Pagoda and many other Shanxi cultural relics protection units. |