[MINC-development] MINC2 file with floating-point voxels and slice normalization

Andrew Janke a.janke at gmail.com
Fri Jan 18 16:48:21 EST 2013


Isn't this done by the valid min and max for the file?  I'll have to look
at the register and Display code again.

a
 On 19/01/2013 1:47 AM, "John G. Sled" <jgsled at phenogenomics.ca> wrote:

>
> Since we are voting ... I vote for keeping Peter's design where the slice
> min / max is maintained for informational purposes when the underlying data
> type is float.  This allows visualization tools to make a sensible initial
> choice for the window and level.
>
> John
>
>
>
> On 13-01-17 8:31 PM, Andrew Janke wrote:
>
>> Peter wrote:
>>
>>> Remember that in the original design of minc, there were
>>> only real numbers (conceptually) - storing as bytes or shorts has always
>>> just been a representational trick for fixed point. The real values are
>>> rescaled to fit in the integer range, potentially on a slice-by-slice
>>> basis,
>>> preserving the scaling info in the image max/min. Floating-point
>>> representations do not need any rescaling to fit, so none is done.
>>>
>> Thanks for the info Peter.
>>
>>  to float/double using MINC tools the slice max/mins are discarded.
>>>>
>>> In the float/double case the slice max/mins are preserved for
>>> informational
>>> purposes (it is not necessary to read the whole image to know the range).
>>>
>> OK, good to know. Vlad, I vote that we discard this information on
>> conversion to float/double in MINC2/minc_lite. I'm not sure if still
>> having this information around was the reason why scaling was
>> implemented in MINC2 but it might have contributed.
>>
>> I see no reason to keep it and add to any confusion.
>>
>> ta
>>
>>
>> a
>> ______________________________**_________________
>> MINC-development mailing list
>> MINC-development at bic.mni.**mcgill.ca <MINC-development at bic.mni.mcgill.ca>
>> http://www.bic.mni.mcgill.ca/**mailman/listinfo/minc-**development<http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development>
>>
>
> ______________________________**_________________
> MINC-development mailing list
> MINC-development at bic.mni.**mcgill.ca <MINC-development at bic.mni.mcgill.ca>
> http://www.bic.mni.mcgill.ca/**mailman/listinfo/minc-**development<http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/minc-development/attachments/20130119/d653cee7/attachment.html>


More information about the MINC-development mailing list