OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::Complex< _Tp > Class Template Reference

A complex number class. More...

#include <opencv2/core/types.hpp>

Collaboration diagram for cv::Complex< _Tp >:

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
 

Detailed Description

template<typename _Tp>
class cv::Complex< _Tp >

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().

Constructor & Destructor Documentation

◆ Complex() [1/2]

template<typename _Tp>
cv::Complex< _Tp >::Complex ( )

default constructor

◆ Complex() [2/2]

template<typename _Tp>
cv::Complex< _Tp >::Complex ( _Tp  _re,
_Tp  _im = 0 
)

Member Function Documentation

◆ conj()

template<typename _Tp>
Complex cv::Complex< _Tp >::conj ( ) const

conjugation

◆ operator Complex< T2 >()

template<typename _Tp>
template<typename T2 >
cv::Complex< _Tp >::operator Complex< T2 > ( ) const

conversion to another data type

Member Data Documentation

◆ im

template<typename _Tp>
_Tp cv::Complex< _Tp >::im

Referenced by cv::FileStorage::write().

◆ re

template<typename _Tp>
_Tp cv::Complex< _Tp >::re

Referenced by cv::FileStorage::write().


The documentation for this class was generated from the following file: