| Camouflage technology is an important method of protection in military. From the Anglo-Boer War which began at the 19 th century, camouflage technology is more and more used in the war. Modern camouflage is divided into deformation camouflage and digital camouflage. Deformation camouflage deforms things by irregular spots in order to confuse eyes and digital camouflage reaches pretending by using the pixel. With the development of computer technology, these two types of camouflage are generated relying on digital image processing technology. This technology generates camouflage by extracting the contours and color of the background to achieve the effect of camouflage. This method improves the efficiency and accuracy of design, but reduces manual intervention. Camouflage pattern generation cannot make the appropriate changes as the user wishes. So this paper puts forward a method of deformation camouflage automatic generation and implements a complete system. It saves the computer fast processing efficiency and increases the convenience of artificially controlled.Deformation camouflage with random, irregular, smooth characteristics must meet the requirements of the curvature to ensure a smooth transition of adjacent spots. Spot distribution must meet the area color ratio and the three-dimensional model of the public part must be transited naturally in order to achieve the best camouflage effect. After learning the deformation camouflage generation researches, this paper analyzed the requirements of generating camouflage and proposed a method by using Bezier curve to simulate camouflage spots. It generated the key points and control points with two-point method for automatic generation of closed curves. It otherwise proposed an algorithm that obtained the area of irregular curve according to regional segmentation and collision detection. It colored spots and automatically distribution based on scale making the picture meeting the requirements of random and curvature. In addition, this paper studied the process from camouflage patterns textures to three-dimensional model, using of OpenGL to achieve the three-dimensional model render and five-sided maps of the textured three-dimensional map or non-textured. It completed the integration testing of camouflage and scene.Based on the above study, the paper made a detailed analysis and design of the system. It described the MVC architectural pattern and gave functional module division and operation processes. The paper also analyzed the system design classes and demonstrated the system implementation. Finally, it made a summary of my work and a prospects in the next step. The implementation for the actual production needs improved the camouflage generation efficiency and increased human operational factors, making the camouflage pattern generation more flexible and efficient. |