vtkImageReslice::SetResliceAxesDirectionCosines(...), the parameters name are misleading
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The declaration of the function comes from vtkImageReslice.h. The parameters for method SetResliceAxesDirectionCosines() is misleading. Because those nine parameters are assigned to a rotation matrix column by column, which means x0->mat[0][0], x1->mat[1][0], etc. In such way, the first row in the rotation matrix is (x0, y0, z0). This will make user of this function think that the reslice-X-axis (x0, y0, z0) is rotated to the original-X-axis. This is wrong. In fact, the reslice-X-axis should be placed in the first column in the rotation matrix. I think it's better to shuffle those parameters name or change the way of assigning those parameters to be row by row.
// Description: // Specify the direction cosines for the ResliceAxes (i.e. the // first three elements of each of the first three columns of // the ResliceAxes matrix). This will modify the current // ResliceAxes matrix, or create a new matrix if none exists. void SetResliceAxesDirectionCosines(double x0, double x1, double x2, double y0, double y1, double y2, double z0, double z1, double z2);