Disclosure of Invention
Aiming at the defects of the prior art, the applicant designs a method for correcting the Euler angle of the plate texture, which can automatically correct the deviation of the Euler angle, thereby greatly reducing the error and complexity; the difficult problem of adjusting data with large angle and the like which are difficult to adjust is solved; and all Euler angles in the Euler space are uniformly adjusted, so that the efficiency is greatly improved.
The invention aims to be realized by the following technical scheme:
the inventor provides a method for correcting Euler angles of plate textures, which comprises the following steps:
(1) counting the Euler angles of the centers of the peaks of the Euler angles in the Euler space;
(2) matching the Euler angles obtained in the step (1) pairwise, and calculating a phase difference matrix X between the two Euler angles;
(3) solving the rotation matrix M according to the symmetric phase difference matrix X';
(4) rotating all Euler angles in the Euler space using the rotation matrix M.
Preferably, the peak in step (1) is an euler space coordinate with a higher orientation distribution density.
Preferably, the number of the peaks is 4 or more.
Preferably, the method for calculating the phase difference matrix X in step (2) is as follows:
X=A1 -1 *A2
wherein: a. the1、A2And (2) respectively representing matrixes corresponding to the Euler angles counted in the step (1).
Preferably, the symmetric phase difference matrix X' in step (3) is obtained by screening all the phase difference matrices X obtained in step (2).
Preferably, the screening comprises:
checking whether the phase difference matrix is a symmetric matrix;
checking whether the phase difference matrix is similar to the matrix lambda
preferably, the matrix checking in the first step and the second step allows an error, and the phase difference matrix X with the minimum error is selected as the symmetric phase difference matrix X'.
Preferably, the specific method for solving the rotation matrix M in step (3) is as follows:
setting the rotation matrix
The Euler angle corresponding to M is
② according to the formula
Calculating w, l and t;
solving a second angle phi of the Euler angle corresponding to the rotation matrix M according to a formula phi (arccos) (l) and l;
fourthly, according to the formula
w, t and phi are used for solving the first angle of the Euler angle corresponding to the rotation matrix M
Fifthly, all the Euler angles in the step (1) are adjusted according to
Rotating;
sixthly, screening a group of mirror symmetric matrixes P and Q from the matrixes corresponding to the Euler angles after the rotation in the fifth step;
the above-mentioned
And
the following conditions must be satisfied:
p13=q23、
p23=q13、
p33=q33and
(p32+q32)/(p31+q31)=-(p31-q31)/(p32-q32)=(p21+q22)/(p11+q21)=-(p11-p21)/(p12-q22)=(p22+q12)/(p21+q11)=-(p22-q12)/(p21-q11);
according to the formula
Determining a third angle of the rotation matrix
Wherein: p is a radical of11、p12、p13、p21、p22、p23、p31、p32、p33、q11、q12、q13、q21、q22、q23、q31、q32And q is33The method comprises the following steps of (1) knowing;
according to the Euler angle
And the three angles
Phi and
is given by u, v, r, s, h and k in the rotation matrix M.
Preferably, in the step (c):
said p is13=q23The allowable error of (a) is 0.001-0.01;
said p is23=q13The allowable error of (a) is 0.001-0.01;
said p is33=q33The allowable error of (2) is 0.001 to 0.01.
Preferably, the specific operations of the fifth step are as follows:
corresponding a matrix of Euler angles to be rotated to the Euler angles
Multiplying corresponding matrixes; and the Euler angle corresponding to the obtained matrix is the Euler angle after rotation.
Preferably, the specific operation of rotating in the step (4) is as follows:
multiplying a matrix corresponding to the Euler angle to be rotated by the rotation matrix M; and the Euler angle corresponding to the obtained matrix is the Euler angle after rotation.
Preferably, the steps (1) to (4) are incorporated in a computer program.
Compared with the closest prior art, the invention has the beneficial effects that:
1. according to the technical scheme provided by the invention, the symmetry of the plate is utilized, the automatic correction of the possible existing deviation of the Euler angle is realized through calculation, the error caused by manual adjustment is avoided, the correction precision is greatly improved, and the correction can be controlled at 0.1 degrees; the difficult problem of adjusting data with large angle and the like which are difficult to adjust is solved; and all Euler angles in the Euler space are uniformly adjusted, so that the efficiency is greatly improved.
Detailed Description
The technical solutions in the embodiments of the present application are clearly and completely described below with reference to the drawings in the embodiments of the present application.
As shown in fig. 1, the present inventors provide a method for correcting euler angles of plate texture, the method comprising the following steps:
(1) counting the Euler angles of the centers of the peaks of the Euler angles in the Euler space;
(2) matching the Euler angles obtained in the step (1) pairwise, and calculating a phase difference matrix X between the two Euler angles;
(3) solving the rotation matrix M according to the symmetric phase difference matrix X';
(4) rotating all Euler angles in the Euler space using the rotation matrix M.
The peak value in the step (1) is an Euler space coordinate with larger orientation distribution density.
The number of the peaks is 4 or more.
The method for calculating the phase difference matrix X in the step (2) comprises the following steps:
X=A1 -1*A2
wherein: a. the1、A2And (2) respectively representing matrixes corresponding to the Euler angles counted in the step (1).
And (3) screening the symmetric phase difference matrix X' obtained in the step (2) from all the phase difference matrices X obtained in the step (2).
The screening comprises the following steps:
checking whether the phase difference matrix is a symmetric matrix;
checking whether the phase difference matrix is similar to the matrix lambda or not;
And (4) checking the matrix in the first step and the second step to allow errors, and selecting the phase difference matrix X with the minimum error as a symmetrical phase difference matrix X'.
The specific method for solving the rotation matrix M in the step (3) is as follows:
setting the rotation matrix
The Euler angle corresponding to M is
② according to the formula
Calculating w, l and t;
solving a second angle phi of the Euler angle corresponding to the rotation matrix M according to a formula phi (arccos) (l) and l;
fourthly, according to the formula
w, t and phi are used for solving the first angle of the Euler angle corresponding to the rotation matrix M
Fifthly, all the Euler angles in the step (1) are adjusted according to
Rotating;
sixthly, screening a group of mirror symmetric matrixes P and Q from the matrixes corresponding to the Euler angles after the rotation in the fifth step;
the above-mentioned
And
the following conditions must be satisfied:
p13=q23、
p23=q13、
p33=q33and
(p32+q32)/(p31+q31)=-(p31-q31)/(p32-q32)=(p21+q22)/(p11+q21)=-(p11-p21)/(p12-q22)=(p22+q12)/(p21+q11)=-(p22-q12)/(p21-q11);
according to the formula
Determining a third angle of the rotation matrix
Wherein: p is a radical of11、p12、p13、p21、p22、p23、p31、p32、p33、q11、q12、q13、q21、q22、q23、q31、q32And q is33The method comprises the following steps of (1) knowing;
according to the Euler angle
And the three angles
Phi and
is given by u, v, r, s, h and k in the rotation matrix M.
In the step (c):
said p is13=q23The allowable error of (a) is 0.001-0.01;
said p is23=q13The allowable error of (a) is 0.001-0.01;
said p is33=q33The allowable error of (2) is 0.001 to 0.01.
Preferably, the specific operations of the fifth step are as follows:
corresponding a matrix of Euler angles to be rotated to the Euler angles
Multiplying corresponding matrixes; and the Euler angle corresponding to the obtained matrix is the Euler angle after rotation.
The specific operation of rotating in the step (4) is as follows:
multiplying a matrix corresponding to the Euler angle to be rotated by the rotation matrix M; and the Euler angle corresponding to the obtained matrix is the Euler angle after rotation.
The steps (1) to (4) are incorporated in a computer program.
Finally, it should be noted that: the embodiments described are only a part of the embodiments of the present application, and not all embodiments, and all other embodiments obtained by those skilled in the art without making creative efforts based on the embodiments in the present application belong to the protection scope of the present application.