Skip to content
Snippets Groups Projects
Commit 9d73903c authored by Matthew Webster's avatar Matthew Webster
Browse files

Removed ConvertCoords

parent bd350252
No related branches found
No related tags found
No related merge requests found
...@@ -1108,26 +1108,6 @@ mat44 newmat_to_mat44(const Matrix& inmat) ...@@ -1108,26 +1108,6 @@ mat44 newmat_to_mat44(const Matrix& inmat)
} }
return retmat; return retmat;
} }
void ConvertCoords(float& x, float& y, float& z, const Matrix mat)
{
ColumnVector vec(4);
vec << x << y << z << 1.0;
vec = mat * vec; // apply voxel xfm
x = vec(1);
y = vec(2);
z = vec(3);
}
void ConvertCoords(int& x, int& y, int& z, const Matrix mat)
{
ColumnVector vec(4);
vec << x << y << z << 1.0;
vec = mat * vec; // apply voxel xfm
x = (int)vec(1);
y = (int)vec(2);
z = (int)vec(3);
}
// Matlab style functions for percentiles, quantiles and median // Matlab style functions for percentiles, quantiles and median
// AUG 06 CB // AUG 06 CB
......
...@@ -165,8 +165,6 @@ namespace MISCMATHS { ...@@ -165,8 +165,6 @@ namespace MISCMATHS {
mat44 NewmatToMat44(const Matrix& m); mat44 NewmatToMat44(const Matrix& m);
mat44 newmat_to_mat44(const Matrix& inmat); mat44 newmat_to_mat44(const Matrix& inmat);
Matrix mat44_to_newmat(mat44 inmat); Matrix mat44_to_newmat(mat44 inmat);
void ConvertCoords(float& x, float& y, float& z, const Matrix mat);
void ConvertCoords(int& x, int& y, int& z, const Matrix mat);
void get_axis_orientations(const Matrix& sform_mat, int sform_code, void get_axis_orientations(const Matrix& sform_mat, int sform_code,
const Matrix& qform_mat, int qform_code, const Matrix& qform_mat, int qform_code,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment