I am working with 3d point data. When I checked the data I realized that there is some error on my data and need to do some kind of rotational rectification because the points which should be lie on a vertical line don’t lie but lie on a oblique line and also points which should lie on a vertical plane do lie on a bit oblique plane to the vertical.
So, what I did was, I have fitted the two planes by carefully selecting points lie on two nearby vertical planes (also by avoiding outliers). Then, I got an intersection line, in 3D, (the red line in figure) made by two vertical planes which I have fitted. If I get the directional vector of that line 3d, then it was (-0.04, -0.01, 0.9). As this line should be truly vertical I think these values should be equal to (0, 0, 1). Now, I want to apply rotational corrections along each axis to be come to this line parallel to (0, 0, 1).
I am bit confused how can I compute my rotational angles with these information. (I think I have enough information to compute correction angles.)
As I am thinking that my question is not clear, so that I am explaining the question again here under updates.-
I have a point data set; Pi(xi, yi, zi). I want to find coordinate errors of this data set. However, I don’t have reference data for that, so that I found two vertical planes, perpendicular to each other, (for example building walls) by fitting planar fitting algorithm. Though these two planes must be truly vertical, it appears like it has small deviation from vertically. Then, I intersect these two planes and get a 3D line. In reality, this line should be truly vertical so vector of the line should be (0, 0, 1), however the detected line vector is (-0.04, -0.01, 0.99). I guess this is because of axis rotation error occurred at the time of data capturing. So what I really want to find rotation matrix (rotation angles of X,Y, Z axes i.e alpha, beta, gama) to be applied on to my points. I think I should use the following equation for this;
So, please help me to find my rotational correction angles along X, Y and Z axes. Thank you.