template class cv::Complex

Overview

A complex number class. Moreā€¦

#include <types.hpp>

template <typename _Tp>
class Complex
{
public:
    // fields

    _Tp im;
    _Tp re;

    // construction

    Complex();

    Complex(
        _Tp _re,
        _Tp _im = 0
        );

    // methods

    Complex
    conj() const;

    template <typename T2>
    operator Complex< T2 >() const;
};

Detailed Documentation

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

Construction

Complex()

constructors

Methods

Complex
conj() const

conjugation

template <typename T2>
operator Complex< T2 >() const

conversion to another data type