diff --git a/miscmaths.cc b/miscmaths.cc index cbde2eed0855d1e81012e0e41a16fc9c3f85f7fb..b03cd503b7e78d15a7b79f7f9525b4e9077a873e 100644 --- a/miscmaths.cc +++ b/miscmaths.cc @@ -1108,26 +1108,6 @@ mat44 newmat_to_mat44(const Matrix& inmat) } 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 // AUG 06 CB diff --git a/miscmaths.h b/miscmaths.h index 9ff9fe46cf4c9a8d75fa06ab58f7c40fed6b3187..e5e740fb50b765859cb98a81d3c42bc9bba86f6a 100644 --- a/miscmaths.h +++ b/miscmaths.h @@ -165,8 +165,6 @@ namespace MISCMATHS { mat44 NewmatToMat44(const Matrix& m); mat44 newmat_to_mat44(const Matrix& 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, const Matrix& qform_mat, int qform_code,