OpenCV
4.10.0-dev
Open Source Computer Vision
|
A complex number class. More...
#include <opencv2/core/types.hpp>
Public Member Functions | |
Complex () | |
default constructor | |
Complex (_Tp _re, _Tp _im=0) | |
Complex | conj () const |
conjugation | |
template<typename T2 > | |
operator Complex< T2 > () const | |
conversion to another data type | |
Public Attributes | |
_Tp | im |
the real and the imaginary parts | |
_Tp | re |
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().
cv::Complex< _Tp >::Complex | ( | ) |
default constructor
cv::Complex< _Tp >::Complex | ( | _Tp | _re, |
_Tp | _im = 0 ) |
Complex cv::Complex< _Tp >::conj | ( | ) | const |
conjugation
conversion to another data type
_Tp cv::Complex< _Tp >::im |
the real and the imaginary parts
_Tp cv::Complex< _Tp >::re |