Population
Image processing library in C++
Classes | Functions

template class for complex numbers in cartesian form More...

Classes

class  pop::Complex< ScalarType >
 Complex number a+ib. More...
 

Functions

template<class T1 >
pop::Complex< T1 > pop::minimum (const pop::Complex< T1 > &x1, const pop::Complex< T1 > &x2)
 minimum of the two numbers More...
 
template<class T1 >
pop::Complex< T1 > pop::maximum (const pop::Complex< T1 > &x1, const pop::Complex< T1 > &x2)
 maximum of the two numbers More...
 
template<class T1 >
pop::Complex< T1 > pop::squareRoot (const pop::Complex< T1 > &x1)
 sqrt of the number http://en.wikipedia.org/wiki/Complex_number#Square_root More...
 
template<class T1 >
F32 pop::productInner (const pop::Complex< T1 > &x1, const pop::Complex< T1 > &x2)
 inner product <x1=(a+ib)|x2=(c+id)>=a*c+b*d More...
 
template<class T1 >
F32 pop::normValue (const pop::Complex< T1 > &x1, F32 p=2)
 norm of the number a^2+b^2 with x1 = a+ib More...
 
template<class T1 >
F32 pop::normPowerValue (const pop::Complex< T1 > &x1, F32 p=2)
 norm of the number a^2+b^2 with x1 = a+ib More...
 
template<class T1 >
F32 pop::distance (const pop::Complex< T1 > &x1, const pop::Complex< T1 > &x2, F32 p=2)
 distance between two complex numbers More...
 
template<class T1 >
pop::Complex< T1 > pop::absolute (const pop::Complex< T1 > &x1)
 Returns the absolute value of each channel. More...
 
template<class T1 >
std::ostream & pop::operator<< (std::ostream &out, const pop::Complex< T1 > x1)
 
template<class T1 >
std::istream & pop::operator>> (std::istream &in, pop::Complex< T1 > &x1)
 

Detailed Description

template class for complex numbers in cartesian form

Function Documentation

template<class T1 >
pop::Complex<T1> pop::absolute ( const pop::Complex< T1 > &  x1)

Returns the absolute value of each channel.

Parameters
x1complex number
template<class T1 >
F32 pop::distance ( const pop::Complex< T1 > &  x1,
const pop::Complex< T1 > &  x2,
F32  p = 2 
)

distance between two complex numbers

Parameters
x1complex number
x2complex number
pp-norm
template<class T1 >
pop::Complex<T1> pop::maximum ( const pop::Complex< T1 > &  x1,
const pop::Complex< T1 > &  x2 
)

maximum of the two numbers

Parameters
x1first complex number
x2second complex number
template<class T1 >
pop::Complex<T1> pop::minimum ( const pop::Complex< T1 > &  x1,
const pop::Complex< T1 > &  x2 
)

minimum of the two numbers

Parameters
x1first complex number
x2second complex number
template<class T1 >
F32 pop::normPowerValue ( const pop::Complex< T1 > &  x1,
F32  p = 2 
)

norm of the number a^2+b^2 with x1 = a+ib

Parameters
x1complex number
pp-norm
template<class T1 >
F32 pop::normValue ( const pop::Complex< T1 > &  x1,
F32  p = 2 
)

norm of the number a^2+b^2 with x1 = a+ib

Parameters
x1complex number
pp-norm
template<class T1 >
std::ostream& pop::operator<< ( std::ostream &  out,
const pop::Complex< T1 >  x1 
)

stream insertion operator

Parameters
outoutput stream
x1complex number
template<class T1 >
std::istream& pop::operator>> ( std::istream &  in,
pop::Complex< T1 > &  x1 
)

stream extraction operator

Parameters
ininput stream
x1complex number
template<class T1 >
F32 pop::productInner ( const pop::Complex< T1 > &  x1,
const pop::Complex< T1 > &  x2 
)

inner product <x1=(a+ib)|x2=(c+id)>=a*c+b*d

Parameters
x1complex number
x2complex number
template<class T1 >
pop::Complex<T1> pop::squareRoot ( const pop::Complex< T1 > &  x1)

sqrt of the number http://en.wikipedia.org/wiki/Complex_number#Square_root

Parameters
x1complex number