Skip to content
Snippets Groups Projects
Commit ac714ab6 authored by Matthew Webster's avatar Matthew Webster
Browse files

fix for -E

parent 1c6a2b0b
No related branches found
No related tags found
No related merge requests found
...@@ -256,6 +256,10 @@ int fmrib_main_float(int argc, char* argv[]) ...@@ -256,6 +256,10 @@ int fmrib_main_float(int argc, char* argv[])
ColumnVector hist; ColumnVector hist;
int nbins=1000; int nbins=1000;
double entropy=0; double entropy=0;
if (mask.nvoxels()<1) {
generate_masks(mask,masknz,vol,lthr,uthr);
vol*=mask;
}
hist = vol.histogram(nbins,masknz); hist = vol.histogram(nbins,masknz);
double ntot = hist.Sum(); double ntot = hist.Sum();
for (int j=1; j<=nbins; j++) { for (int j=1; j<=nbins; j++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment