Orfeo Toolbox  3.16
Functions | Variables
itk::Math Namespace Reference

Functions

template<typename TReturn , typename TInput >
TReturn CastWithRangeCheck (TInput x)
template<TReturn , typename TInput >
 Ceil (TInput x)
 Round towards plus infinity.
template<TReturn , typename TInput >
 Floor (TInput x)
 Round towards minus infinity.
template<typename TReturn , typename TInput >
TReturn Round (TInput x)
 Round towards nearest integer (This is a synonym for RoundHalfIntegerUp)
template<TReturn , typename TInput >
 RoundHalfIntegerToEven (TInput x)
 Round towards nearest integer.
template<TReturn , typename TInput >
 RoundHalfIntegerUp (TInput x)
 Round towards nearest integer.
int RoundHalfIntegerToEven (double x)
int RoundHalfIntegerToEven (float x)
int RoundHalfIntegerUp (double x)
int RoundHalfIntegerUp (float x)
int Round (double x)
int Round (float x)
int Floor (double x)
int Floor (float x)
int Ceil (double x)
int Ceil (float x)

Variables

static const double ln10 = 2.30258509299404568402
 

\[ \log_e 10 \]


static const double ln2 = 0.69314718055994530942
 

\[ \log_e 2 \]


static const double log10e = 0.43429448190325182765
 

\[ \log_10 e \]


static const double log2e = 1.4426950408889634074
 

\[e] The base of the natural logarithm or Euler's number */ static const double e = 2.7182818284590452354; /** \brief \f[ \log_2 e \]


static const double one_over_pi = 0.31830988618379067154
 

\[ \frac{1}{\pi} \]


static const double one_over_sqrt2pi = 0.39894228040143267794
 

\[ \frac{2}{\sqrt{2\pi}} \]


static const double pi_over_2 = 1.57079632679489661923
 

\[ \pi ] */ static const double pi = 3.14159265358979323846; /** \brief \f[ \frac{\pi}{2} \]


static const double pi_over_4 = 0.78539816339744830962
 

\[ \frac{\pi}{4} \]


static const double sqrt1_2 = 0.70710678118654752440
 

\[ \sqrt{ \frac{1}{2}} \]


static const double sqrt2 = 1.41421356237309504880
 

\[ \sqrt{2} \]


static const double two_over_pi = 0.63661977236758134308
 

\[ \frac{2}{\pi} \]


static const double two_over_sqrtpi = 1.12837916709551257390
 

\[ \frac{2}{\sqrt{\pi}} \]



Function Documentation

template<typename TReturn , typename TInput >
TReturn itk::Math::CastWithRangeCheck ( TInput  x)
inline

This class requires OnlyDefinedForIntegerTypes1 in the form of (itk::Concept::IsInteger<TReturn>)

This class requires OnlyDefinedForIntegerTypes2 in the form of (itk::Concept::IsInteger<TInput>)

Definition at line 225 of file itkMath.h.

References itkConceptMacro.

template<TReturn , typename TInput >
itk::Math::Ceil ( TInput  x)

Round towards plus infinity.

The behavior of overflow is undefined due to numerous implementations.

Warning:
argument absolute value must be less than INT_MAX/2 for vnl_math_ceil to be guaranteed to work.
We also assume that the rounding mode is not changed from the default one (or at least that it is always restored to the default one).
int itk::Math::Ceil ( double  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 218 of file itkMath.h.

int itk::Math::Ceil ( float  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 219 of file itkMath.h.

template<TReturn , typename TInput >
itk::Math::Floor ( TInput  x)

Round towards minus infinity.

The behavior of overflow is undefined due to numerous implementations.

Warning:
argument absolute value must be less than NumbericTraits<TReturn>::max()/2 for vnl_math_floor to be guaranteed to work.
We also assume that the rounding mode is not changed from the default one (or at least that it is always restored to the default one).
int itk::Math::Floor ( double  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 215 of file itkMath.h.

int itk::Math::Floor ( float  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 216 of file itkMath.h.

template<typename TReturn , typename TInput >
TReturn itk::Math::Round ( TInput  x)
inline

Round towards nearest integer (This is a synonym for RoundHalfIntegerUp)

Template Parameters:
TReturnmust be an interger type
TInputmust be float or double
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 162 of file itkMath.h.

int itk::Math::Round ( double  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 212 of file itkMath.h.

int itk::Math::Round ( float  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 213 of file itkMath.h.

template<TReturn , typename TInput >
itk::Math::RoundHalfIntegerToEven ( TInput  x)

Round towards nearest integer.

Template Parameters:
TReturnmust be an interger type
TInputmust be float or double
    halfway cases are rounded towards the nearest even
    integer, e.g.

The behavior of overflow is undefined due to numerous implementations.

Warning:
We assume that the rounding mode is not changed from the default one (or at least that it is always restored to the default one).
int itk::Math::RoundHalfIntegerToEven ( double  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 206 of file itkMath.h.

int itk::Math::RoundHalfIntegerToEven ( float  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 207 of file itkMath.h.

template<TReturn , typename TInput >
itk::Math::RoundHalfIntegerUp ( TInput  x)

Round towards nearest integer.

Template Parameters:
TReturnmust be an interger type
TInputmust be float or double
    halfway cases are rounded upward, e.g.
RoundHalfIntegerUp( 1.5) == 2
RoundHalfIntegerUp(-1.5) == -1
RoundHalfIntegerUp( 2.5) == 3

The behavior of overflow is undefined due to numerous implementations.

Warning:
The argument absolute value must be less than NumbericTraits<TReturn>::max()/2 for RoundHalfIntegerUp to be guaranteed to work.
We also assume that the rounding mode is not changed from the default one (or at least that it is always restored to the default one).
int itk::Math::RoundHalfIntegerUp ( double  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 209 of file itkMath.h.

int itk::Math::RoundHalfIntegerUp ( float  x)
inline
Deprecated:
These methods have been deprecated as of ITK 3.16. Please use the templated methods of the form itk::Math::XXX<TReturn,TINput(TInput x) instead.
See also:
RoundHalfIntegerUp<TReturn, TInput>()

Definition at line 210 of file itkMath.h.


Variable Documentation

const double itk::Math::ln10 = 2.30258509299404568402
static

\[ \log_e 10 \]

Definition at line 50 of file itkMath.h.

const double itk::Math::ln2 = 0.69314718055994530942
static
const double itk::Math::log10e = 0.43429448190325182765
static

\[ \log_10 e \]

Definition at line 46 of file itkMath.h.

const double itk::Math::log2e = 1.4426950408889634074
static

\[e] The base of the natural logarithm or Euler's number */ static const double e = 2.7182818284590452354; /** \brief \f[ \log_2 e \]

Definition at line 44 of file itkMath.h.

const double itk::Math::one_over_pi = 0.31830988618379067154
static
const double itk::Math::one_over_sqrt2pi = 0.39894228040143267794
static

\[ \frac{2}{\sqrt{2\pi}} \]

Definition at line 64 of file itkMath.h.

Referenced by itk::Statistics::GaussianDistribution::PDF().

const double itk::Math::pi_over_2 = 1.57079632679489661923
static
const double itk::Math::pi_over_4 = 0.78539816339744830962
static

\[ \frac{\pi}{4} \]

Definition at line 56 of file itkMath.h.

const double itk::Math::sqrt1_2 = 0.70710678118654752440
static
const double itk::Math::sqrt2 = 1.41421356237309504880
static

\[ \sqrt{2} \]

Definition at line 66 of file itkMath.h.

Referenced by itk::FlatStructuringElement< VDimension >::PolySub().

const double itk::Math::two_over_pi = 0.63661977236758134308
static

\[ \frac{2}{\pi} \]

Definition at line 60 of file itkMath.h.

const double itk::Math::two_over_sqrtpi = 1.12837916709551257390
static

\[ \frac{2}{\sqrt{\pi}} \]

Definition at line 62 of file itkMath.h.


Generated at Sun Feb 3 2013 03:01:35 for Orfeo Toolbox with doxygen 1.8.1.1