[Insight-developers] Link errors and itk::NumericTraits on Windows
Julien Jomier
julien.jomier at kitware.com
Fri Apr 21 12:24:44 EDT 2006
Hi Zach,
Some of our programs using ITK need to know the minimum/maximum pixel
values. Before your implementation we defined our own NumericTraits for
RGBPixel with max() of RGBPixel<unsigned char> being the max of unsigned
char, etc...
With the current implementation of numeric traits for RGBPixel, there is
no way to know the maximum of the pixel type. One option is to add the
min() and max() functions returning the min and max of the actual type
(i.e unsigned char/unsigned short), but I don't know if it's correct
though. I'm open to suggestions here.
Also, do you plan to add RGBA pixel traits too?
Thanks,
Julien
Zachary Pincus wrote:
> I have filed a bug on these problems, committed the changes to the CVS,
> and closed the bug.
>
> Files changed to have the stanza suggested by Karthik (below) at the
> bottom:
> Insight/Insight/Code/Common/itkCovariantVector.h
> Insight/Insight/Code/Common/itkRGBPixel.h
> Insight/Insight/Code/Common/itkSymmetricSecondRankTensor.h
> Insight/Insight/Code/Common/itkVariableLengthVector.h
> Insight/Insight/Code/Common/itkVector.h
>
> Zach
>
> On Apr 6, 2006, at 1:19 PM, Karthik Krishnan wrote:
>
>> Pixel.h:
>> class Pixel{ ... };
>> #include "itkNumericTraitsVariableLengthVectorPixel.h"
>> #ifndef ITK_MANUAL_INSTANTIATION
>> #include "itkVariableLengthVector.txx"
>> #endif
>
> _______________________________________________
> 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