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

-r option simplified, now using corrected newimage robust min/max

parent 52c4f3e7
No related branches found
No related tags found
No related merge requests found
...@@ -344,18 +344,8 @@ int fmrib_main_float(int argc, char* argv[]) ...@@ -344,18 +344,8 @@ int fmrib_main_float(int argc, char* argv[])
cout << nonzerostddev(vol) << " "; cout << nonzerostddev(vol) << " ";
} }
} else if (sarg=="-r") { } else if (sarg=="-r") {
if (masks_used) { if (masks_used) cout << vol.robustmin(mask) << " " << vol.robustmax(mask) << " ";
float rmin=vol.robustmin(mask); else cout << vol.robustmin() << " " << vol.robustmax() << " ";
float rmax=vol.robustmax(mask);
if (rmin>rmax) {
float tmp = rmax;
rmax = rmin;
rmin = tmp;
}
cout << rmin << " " << rmax << " ";
} else {
cout << vol.robustmin() << " " << vol.robustmax() << " ";
}
} else if (sarg=="-R") { } else if (sarg=="-R") {
if (masks_used) cout << vol.min(mask) << " " << vol.max(mask) << " "; if (masks_used) cout << vol.min(mask) << " " << vol.max(mask) << " ";
else cout << vol.min() << " " << vol.max() << " "; else cout << vol.min() << " " << vol.max() << " ";
......
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