From 95bea24cbb4c848d31a53d5a01a399f8602cd7e1 Mon Sep 17 00:00:00 2001 From: Mark Woolrich <woolrich@fmrib.ox.ac.uk> Date: Thu, 13 Jul 2000 13:50:29 +0000 Subject: [PATCH] *** empty log message *** --- VolumeSeries.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/VolumeSeries.cc b/VolumeSeries.cc index b0c81ef..ef00cfa 100644 --- a/VolumeSeries.cc +++ b/VolumeSeries.cc @@ -88,12 +88,21 @@ namespace TACO { preThresholdPositions.ReSize(numSeries); - float m = 0; + float m = 0,s = 0; for(int i = 1; i <= numSeries; i++) { m = MISCMATHS::mean(getSeries(i)); - - if(m > thresh) + s = MISCMATHS::var(getSeries(i)); + /* + if(m > thresh && s == 0.0) + { + cerr << "m = " << m << endl; + cerr << "s = " << s << endl; + cerr << "i = " << i << endl; + cerr << "j = " << j+1 << endl; + } + */ + if(m > thresh && s > 0.0) { j++; preThresholdPositions(j) = i; -- GitLab