#include <core.hpp>
Public Member Functions | |
| Complex () | |
| constructors More... | |
| Complex (_Tp _re, _Tp _im=0) | |
| Complex (const std::complex< _Tp > &c) | |
| template<typename T2 > | |
| operator Complex< T2 > () const | |
| conversion to another data type More... | |
| Complex | conj () const |
| conjugation More... | |
| operator std::complex< _Tp > () const | |
| conversion to std::complex More... | |
Public Attributes | |
| _Tp | re |
| _Tp | im |
A complex number class.
The template class is similar and compatible with std::complex, however it provides slightly more convenient access to the real and imaginary parts using through the simple field access, as opposite to std::complex::real() and std::complex::imag().
|
inline |
constructors
|
inline |
| cv::Complex< _Tp >::Complex | ( | const std::complex< _Tp > & | c | ) |
|
inline |
conjugation
|
inline |
conversion to another data type
| cv::Complex< _Tp >::operator std::complex< _Tp > | ( | ) | const |
conversion to std::complex
| _Tp cv::Complex< _Tp >::im |
| _Tp cv::Complex< _Tp >::re |