BIC-MNI / minc-tools

Basic minc-tools from former minc repository
Other
30 stars 25 forks source link

mincresample -keep_real_range does not work with float volumes. #21

Closed rdvincent closed 9 years ago

rdvincent commented 9 years ago

Reported by Alex Zijdenbos:

It appears that running mincresample on a float volume while using -keep_real_range, fails. A simple example:

$ mincreshape -float /usr/local/bic/share/mni-models/icbm_avg_152_t1_tal_lin.mnc float.mnc $ mincstats -quiet -min -max float.mnc 236.8016205 439776.2188

$ mincresample -keep_real_range float.mnc float_res.mnc $ mincstats -quiet -min -max float_res.mnc 1.797693135e+308 -1.797693135e+308

Leaving aside why you'd want to use that option on a float volume (happened buried in a script in my case); what should the correct behaviour be? Ignore the -keep_real_range option for float volumes I'd imagine?

rdvincent commented 9 years ago

I have a tentative fix for this I will check in shortly.