Application of MATLAB in optical alignment

The article has mainly introduced a new method in the process of adjusting the average windward area measuring system of cannonball fragment with the aid of MATLAB. The method can not only analyze the amount of deviation qualitatively but also quantitatively, comparing with the traditional method which just can be used for qualitative analyzing. When the measuring system works, four optical axes of CCD cameras should aim at the center point of the universal platform strictly with different object distances and image distances. In the process of assembling and debugging the system, analyzing the image acquired with MATLAB to get the amount of deviation which can be used as gist.