From ac714ab67dbdbcf17c37774cd83f853b81be3b22 Mon Sep 17 00:00:00 2001 From: Matthew Webster <mwebster@fmrib.ox.ac.uk> Date: Tue, 18 Aug 2009 16:13:54 +0000 Subject: [PATCH] fix for -E --- fslstats.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fslstats.cc b/fslstats.cc index 0ee67f5..188ce64 100644 --- a/fslstats.cc +++ b/fslstats.cc @@ -256,6 +256,10 @@ int fmrib_main_float(int argc, char* argv[]) ColumnVector hist; int nbins=1000; double entropy=0; + if (mask.nvoxels()<1) { + generate_masks(mask,masknz,vol,lthr,uthr); + vol*=mask; + } hist = vol.histogram(nbins,masknz); double ntot = hist.Sum(); for (int j=1; j<=nbins; j++) { -- GitLab