[Insight-users] numeric traits for the std::complex < >

Suyash P. Awate suyash at cs.utah.edu
Mon May 9 15:39:24 EDT 2005


Hello,

I needed to use a vector of std::complex<double> in ITK and had some
compilation errors, i.e.
---
no type named `RealType' in `class
itk::NumericTraits<std::complex<double> >'
---

I solved the problem by writing my own NumericTraits class for this
datatype and my program compiles now. However, I was wondering if this
was the right way to solve the problem. Also, was there something
already existing in ITK that I could was used to obtain a more elegant
solution ?

I would appreciate any help with this. Thanks.

Best regards,
Suyash.



More information about the Insight-users mailing list