[Insight-users] Internal pixel type

Luis Ibanez luis.ibanez at kitware.com
Sat Jul 5 13:30:15 EDT 2008


Hi Paolo,

Thanks for you precise question.

When you use the NormalizedCorrelation metric, you don't need to
convert the images to float. It should be fine to keep your images
as unsigned short, since this metric internally uses the NumericTraits
in order to find the types that appropriate for accumulating
and for performing floating point operations.


    Regards,


        Luis


---------------
Paolo wrote:
> Dear all,
>     I have to registrate two stacks of 16-bit gray level images stacks. 
> Accordingly, I choosed an unsigned short pixel type.
> I would like to use the normalized correlation metric as metric for my 
> registration, and I was wondering if I would have to convert to a float 
> internal pixel type, like in example 8.5.1 which use mutual information ?
> Paolo
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list