From 177ca6f7d65b8fc12e7038158edf4b6046cba110 Mon Sep 17 00:00:00 2001 From: Saad Jbabdi <saad@fmrib.ox.ac.uk> Date: Fri, 6 Jul 2007 13:43:12 +0000 Subject: [PATCH] corrected small bug in simple mode --- probtrackx.cc | 3 ++- ptx_simple.cc | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/probtrackx.cc b/probtrackx.cc index 9509545..4150d57 100644 --- a/probtrackx.cc +++ b/probtrackx.cc @@ -39,7 +39,8 @@ int main ( int argc, char **argv ){ if(fsl_imageexists(opts.mask2.value())){ twomasks();} else{ seedmask(); } } - else{ nmasks(); } + else if(opts.network.value()){ nmasks(); } + else {}; //else if(fopen(tmpin.c_str(),"r")!=NULL ){ track();} diff --git a/ptx_simple.cc b/ptx_simple.cc index 95c1754..418c252 100644 --- a/ptx_simple.cc +++ b/ptx_simple.cc @@ -44,10 +44,11 @@ void track(){ float yst=Seeds(SN,2); float zst=Seeds(SN,3); keeptot += seedmanager.run(xst,yst,zst,false,0); - string add=num2str(Seeds(SN,1))+(string)"_"+num2str(Seeds(SN,2))+(string)"_"+num2str(Seeds(SN,3)); + string add="_"+num2str(Seeds(SN,1))+(string)"_"+num2str(Seeds(SN,2))+(string)"_"+num2str(Seeds(SN,3)); counter.save_pathdist(add); counter.reset_prob(); } //Close Seed number Loop - counter.save_total(keeptot); + + //counter.save_total(keeptot); } -- GitLab