[MINC-development] mincstats

Andrew Janke minc-development@bic.mni.mcgill.ca
Tue, 10 Jun 2003 10:29:41 +1000


On Sun, 8 Jun 2003, Steve ROBBINS wrote:

> > I think that the ambiguity may be why I did not set a default. Perhaps
> > Steve's suggestion of an error is the simplest route. The user should be
> > forced to be specific.
>
> I attach, therefore, a proposed change that will bark if you specify
> -mask without specifying the mask values.  I haven't committed this,
> so please speak up before I do.

Looks reasonable.  My only change to this would be the error line to:

  fprintf(stderr, "%s: Please specify mask values using -mask_floor, -mask_ceil,
-mask_range, or -mask_binvalue\n", argv[0]);

Assuming this line is not hidden in a function!

I have got in the habit of doing this after attempting to figure out what has
gone wrong in a script from log files, only to come to error as such:

  "Incorrect input range".   or the likes. :)

> What *do* you mean by "binary mask"?

For me, it's C-ish, anything that isn't a 0 is fg. But I often use mask files
which contain multiple masks using different values.


a