[Insight-developers] Change (perhaps) needed for itk::NumericTraitsto support WrapITK

Miller, James V (GE, Research) millerjv at crd.ge.com
Wed Mar 15 16:55:07 EST 2006


The numeric traits for RGBPixel should be in itkNumericTraitsRGBPixel.h
So it is in a different file than the standard NumericTraits.

I don't see any reason not to have RGBPixel of other types. Float in 
particular. Don't know whether the readers/writers support it.

Jim



-----Original Message-----
From: insight-developers-bounces+millerjv=crd.ge.com at itk.org
[mailto:insight-developers-bounces+millerjv=crd.ge.com at itk.org]On Behalf
Of Kent Williams
Sent: Wednesday, March 15, 2006 11:14 AM
To: Insight-developers (E-mail)
Subject: [Insight-developers] Change (perhaps) needed for
itk::NumericTraitsto support WrapITK


Gaetan Lehmann et al are working on a new wrapping Framework for ITK, 
and I noticed one problem in my efforts to get the TCL support fully 
working.  WrapITK optionally supports the itk::RGBPixel<unsigned short> 
data type, and their wrapping generates a reference to 
itk::NumericTraits<RGBPixel<unsigned short> >::One, which doesn't get 
defined.  To get WrapITK's version of Wish to link, I have to add that 
type (patch below).

My question: is there a reason not to check in this change? I'm a little 
confused about what the case is here, either:
A) ITK doesn't and won't support itk::RGBPixel<unsigned short>
or
B) Any scalar type works with itk::RGBPixel<>, and the NumericTraits is 
beside the point, but WrapITK (incorrectly?) demands 
itk::NumericTraits<RGBPixel<unsigned short> >

If WrapITK will be replacing the current wrapping code, I would 
certainly welcome someone besides me looking at how well it works with 
TCL. 

_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list