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