[MINC-development] nu_correct on linux

Peter NEELIN minc-development@bic.mni.mcgill.ca
Sun, 4 Jan 2004 22:02:24 -0500


On Tue, 23 Dec 2003, Richard Boyes wrote:

> when i try nu_correct, it jumps out straight away,
> saying the field change is 1E-27. this has happened
> for multiple images with bad bias fields, which doesn't
> seem correct.

If I recall correctly, nu_correct had some difficulties with masks that
had ranges that did not correspond to its expectations (is that correct,
John?). This is just a guess, but try using the -scan_range option for the
mask images as well:

#Mask file - no need to swap bytes
rawtominc -byte -obyte -clobber -input ./bmask00000.img -coronal \
   -xstep 0.9766 -ystep 1.8000 -zstep 0.9766 \
   -orange 0 255 -scan_range ./bmask00000.mnc 120 256 256

Alternatively, replace the -orange option with
"-range 0 255 -real_range 0 255" and do not use -scan_range.

            Peter
----
            Peter Neelin (neelin@bic.mni.mcgill.ca)