Skip to content
Snippets Groups Projects
Commit 1e7e1cea authored by Duncan Mortimer's avatar Duncan Mortimer
Browse files

Re-comitting my 10.5 changes

parent c9ce8fb1
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include "miscmaths/miscmaths.h" #include "miscmaths/miscmaths.h"
#include "newimage/newimageall.h" #include "newimage/newimageall.h"
#include "newimage/costfns.h" #include "newimage/costfns.h"
#include "utils/fsl_isfinite.h"
using namespace NEWIMAGE; using namespace NEWIMAGE;
using namespace MISCMATHS; using namespace MISCMATHS;
...@@ -17,12 +19,6 @@ bool masks_used=false; ...@@ -17,12 +19,6 @@ bool masks_used=false;
bool lthr_used=false; bool lthr_used=false;
bool uthr_used=false; bool uthr_used=false;
#if defined ( __CYGWIN__ ) || defined (__sun)
extern "C" {
#include <ieeefp.h> //for finite
}
#endif
void print_usage(const string& progname) { void print_usage(const string& progname) {
cout << "Usage: fslstats <input> [options]" << endl << endl; cout << "Usage: fslstats <input> [options]" << endl << endl;
cout << endl; cout << endl;
...@@ -171,7 +167,7 @@ int fmrib_main_float(int argc, char* argv[]) ...@@ -171,7 +167,7 @@ int fmrib_main_float(int argc, char* argv[])
for (int z=vol.minz(); z<=vol.maxz(); z++) for (int z=vol.minz(); z<=vol.maxz(); z++)
for (int y=vol.miny(); y<=vol.maxy(); y++) for (int y=vol.miny(); y<=vol.maxy(); y++)
for (int x=vol.minx(); x<=vol.maxx(); x++) for (int x=vol.minx(); x<=vol.maxx(); x++)
if (!finite((double)vol(x,y,z,t))) if (!isfinite((double)vol(x,y,z,t)))
vol(x,y,z,t)=0; vol(x,y,z,t)=0;
} else if (sarg=="-m") { } else if (sarg=="-m") {
if (masks_used) cout << vol.mean(mask) << " "; if (masks_used) cout << vol.mean(mask) << " ";
......
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