[MINC-users] mincresample -keep_real_range on float volume
Robert VINCENT
bert at bic.mni.mcgill.ca
Mon Jan 5 10:53:49 EST 2015
Hi,
I just reproduced this. The issue is that, at least in this example, the
image:valid_range for float_res.mnc is being set to [0,1], while the true
voxel values remain in the range [246.8016, 439776.2]. This must cause
mincstats to ignore all of the values outside the valid_range, and
therefore to print the min and max values as initialized.
I assume there is a simple bug in determining the valid_range for
the output file. I'll see about fixing this soon.
Thanks for the report, Alex.
-bert
On Mon, 5 Jan 2015, Andrew Janke wrote:
> Hi Alex,
>
> I haven't tried this, but what does the output volume look like?
>
> As you say, what you are attempting to do doesn't make much sense and
> remember that mincstats isn't reporting the valid range but rather on
> the values themselves. Thus I'm surprised at the +/- DBL_MAX values
> being output, especially as the min is larger than the max!
>
> I'm guessing the values being output are the default max and min
> before running through the volume, so all the data is null?
>
>
> a
>
> On 31 December 2014 at 02:27, Alex Zijdenbos <zijdenbos at gmail.com> wrote:
>> Hi all,
>>
>> 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?
>>
>> Happy 2015 in advance!
>>
>> :-)
>>
>> -- A
>> _______________________________________________
>> MINC-users at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
More information about the MINC-users
mailing list