[Insight-users] Re: Hello- Guidance regarding using Infinity

Luis Ibanez luis.ibanez at kitware.com
Mon Oct 30 16:50:11 EST 2006


Hi Sonali,

ITK NumericTraits inherit their definition of max() from VXL.

You will find the definition in the file:

         Insight/Utilities/vxl/vcl/emulation/
                                       vcl_limits.h


in line 542:


   inline static double max() { return 1.7976931348623157e+308; }



   Regards,


       Luis


-------------------
Sonali Barua wrote:
> What would the return type be? I can't seem to find the definition of 
> this value online.
> 
> On 6/17/06, *Luis Ibanez* < luis.ibanez at kitware.com 
> <mailto:luis.ibanez at kitware.com>> wrote:
> 
> 
>     Hi Sonali,
> 
>     The closest equivalent to "INFINITY" in Generic Programming
>     is the value of:
> 
> 
>                itk::NumericTraits< double >::max();
> 
> 
>     Regards,
> 
> 
>         Luis
> 
> 
>     ---------------------
>     Sonali Barua wrote:
>      > Hello,
>      >
>      > I am trying to develop a Graph Class for ITK. I would like to
>     know what
>      > pre defined variable in ITK I can use to define INFINITY.
>      >
>      > Sincerely,
>      >
>      > Sonali Barua.
> 
> 
> 


More information about the Insight-users mailing list