1. A computer implemented method for aligning objects, the method comprising: (a) receiving two objects from a database comprising a reference object and a to-be-moved object; (b) receiving a plurality of feature elements of the reference object, and constructing a first coordinate system by determining a first axis, a second axis, and an origin of the first coordinate system according to the feature elements of the reference object; (c) receiving a plurality of feature elements of the to-be-moved object, and constructing a second coordinate system by determining a first axis, a second axis, and an origin of the second coordinate system according to the feature elements of the to-be-moved object; (d) constructing a third coordinate system by determining an origin of the third coordinate system by obtaining an intersection point of the X axis of the first coordinate system and the Y axis of the second coordinate system; determining an X axis of the third coordinate system by obtaining a normal vector of the X axis of the first coordinate system; determining a Y axis of the third coordinate system by obtaining a normal vector of the Y axis of the second coordinate system; and constructing the third coordinate system; (e) obtaining an operation matrix according to coordinate values of points on origin and axes of the first coordinate system and the second coordinate system, wherein the coordinate values are computed using the third coordinate system; and (f) moving each point of the to-be-measured object through multiplying coordinate values of each point of the to-be-moved object by the operation matrix, so as to align the reference object and the to-be-moved object.