From d411eb0ca496b98a75fdcc22d233cac98baf88e9 Mon Sep 17 00:00:00 2001 From: Saad Jbabdi <saad@fmrib.ox.ac.uk> Date: Tue, 28 Mar 2006 13:20:48 +0000 Subject: [PATCH] *** empty log message *** --- miscmaths.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/miscmaths.cc b/miscmaths.cc index aba20f3..ec843cc 100644 --- a/miscmaths.cc +++ b/miscmaths.cc @@ -1455,16 +1455,16 @@ ReturnMatrix geqt(const Matrix& mat1,const Matrix& mat2) res.Release(); return res; } -ReturnMatrix geqt(const Matrix& mat1,const float a) +ReturnMatrix geqt(const Matrix& mat,const float a) { - int ncol = mat.Ncols(); - int nrow = mat.Nrows(); - Matrix res(nrow,ncol); + int ncols = mat.Ncols(); + int nrows = mat.Nrows(); + Matrix res(nrows,ncols); res=0.0; for (int ctr1 = 1; ctr1 <= nrows; ctr1++) { for (int ctr2 =1; ctr2 <= ncols; ctr2++) { - if( mat1(ctr1,ctr2) >= a){ + if( mat(ctr1,ctr2) >= a){ res(ctr1,ctr2) = 1.0; } } -- GitLab