[MINC-users] Volumes containing NaN and mincresample

Peter Neelin peter.neelin at gmail.com
Wed Apr 17 19:19:09 EDT 2013


On Apr 17, 2013 11:15 AM, "Andrew Wood" <andrew at biospective.com> wrote:

> How are NaNs represented in the minc world? It looks like they're simply
> stored as its slice's minimum value:

They are represented as values outside of the valid range. If you have a
representation with a valid range that uses all possible values, then you
cannot accurately represent an invalid value (e.g. byte data in range 0 to
255). So the first step is to create a minc file the possibility of storing
invalid values with something like short values in the range -32000 to
32000 (for example).

When using mincresample, you must specify -fill in order to get invalid
values out (when any of the contributing voxels is invalid). By default,
zero is used (real value zero). You can also specify a real value to insert
into those voxels with -fillvalue.

Peter
--
Peter Neelin
peter.neelin at gmail.com


More information about the MINC-users mailing list