OpenCV  3.2.0-dev
Open Source Computer Vision
cv::viz::Color Class Reference

This class a represents BGR color. More...

#include "types.hpp"

Inheritance diagram for cv::viz::Color:
Collaboration diagram for cv::viz::Color:

Public Types

enum  
 
enum  
 
typedef Matx< double, shortdim, 1 > diag_type
 
typedef Matx< double, m, n > mat_type
 
typedef double value_type
 

Public Member Functions

 Color ()
 
 Color (double gray)
 
 Color (double blue, double green, double red)
 
 Color (const Scalar &color)
 
Matx< double, m, 1 > col (int i) const
 extract the matrix column More...
 
Scalar_< double > conj () const
 
Vec cross (const Vec &v) const
 cross product of the two 3D vectors. More...
 
double ddot (const Matx< double, m, n > &v) const
 dot product computed in double-precision arithmetics More...
 
diag_type diag () const
 extract the matrix diagonal More...
 
Matx< double, m, n > div (const Matx< double, m, n > &a) const
 divide two matrices element-wise More...
 
double dot (const Matx< double, m, n > &v) const
 dot product computed with the default precision More...
 
Matx< double, m1, n1 > get_minor (int i, int j) const
 extract part of the matrix More...
 
Matx< double, n, m > inv (int method=DECOMP_LU, bool *p_is_ok=NULL) const
 invert the matrix More...
 
bool isReal () const
 
Matx< double, m, n > mul (const Matx< double, m, n > &a) const
 multiply two matrices element-wise More...
 
Vec mul (const Vec< double, cn > &v) const
 per-element multiplication More...
 
Scalar_< double > mul (const Scalar_< double > &a, double scale=1) const
 per-element product More...
 
 operator Matx< T2, m, n > () const
 conversion to another data type More...
 
 operator Scalar_< T2 > () const
 conversion to another data type More...
 
 operator Vec3b () const
 
 operator Vec< T2, cn > () const
 conversion to another data type More...
 
const double & operator() (int i, int j) const
 element access More...
 
double & operator() (int i, int j)
 
const double & operator() (int i) const
 
double & operator() (int i)
 
const double & operator[] (int i) const
 element access More...
 
double & operator[] (int i)
 
Matx< double, m1, n1 > reshape () const
 change the matrix shape More...
 
Matx< double, 1, n > row (int i) const
 extract the matrix row More...
 
Matx< double, n, l > solve (const Matx< double, m, l > &rhs, int flags=DECOMP_LU) const
 solve linear system More...
 
Vec< double, n > solve (const Vec< double, m > &rhs, int method) const
 
Matx< double, n, m > t () const
 transpose the matrix More...
 

Static Public Member Functions

static Scalar_< double > all (doublev0)
 returns a scalar with all elements set to v0 More...
 
static Color amethyst ()
 
static Color apricot ()
 
static Color azure ()
 
static Color black ()
 
static Color bluberry ()
 
static Color blue ()
 
static Color brown ()
 
static Color celestial_blue ()
 
static Color chartreuse ()
 
static Color cherry ()
 
static Color cyan ()
 
static Matx diag (const diag_type &d)
 
static Matx eye ()
 
static Color gold ()
 
static Color gray ()
 
static Color green ()
 
static Color indigo ()
 
static Color lime ()
 
static Color magenta ()
 
static Color maroon ()
 
static Color mlab ()
 
static Color navy ()
 
static Color not_set ()
 
static Color olive ()
 
static Matx ones ()
 
static Color orange ()
 
static Color orange_red ()
 
static Color pink ()
 
static Color purple ()
 
static Matx randn (doublea, doubleb)
 
static Matx randu (doublea, doubleb)
 
static Color raspberry ()
 
static Color red ()
 
static Color rose ()
 
static Color silver ()
 
static Color teal ()
 
static Color turquoise ()
 
static Color violet ()
 
static Color white ()
 
static Color yellow ()
 
static Matx zeros ()
 

Public Attributes

double val [m *n]
 

Detailed Description

This class a represents BGR color.

Member Typedef Documentation

typedef Matx<double , shortdim, 1> cv::Matx< double , m, n >::diag_type
inherited
typedef Matx<double , m, n> cv::Matx< double , m, n >::mat_type
inherited
typedef double cv::Vec< double , cn >::value_type
inherited

Member Enumeration Documentation

anonymous enum
inherited
anonymous enum
inherited

Constructor & Destructor Documentation

cv::viz::Color::Color ( )
cv::viz::Color::Color ( double  gray)
cv::viz::Color::Color ( double  blue,
double  green,
double  red 
)
cv::viz::Color::Color ( const Scalar color)

Member Function Documentation

static Scalar_<double > cv::Scalar_< double >::all ( double  v0)
staticinherited
static Color cv::viz::Color::amethyst ( )
static
static Color cv::viz::Color::apricot ( )
static
static Color cv::viz::Color::azure ( )
static
static Color cv::viz::Color::black ( )
static
static Color cv::viz::Color::bluberry ( )
static
static Color cv::viz::Color::blue ( )
static
static Color cv::viz::Color::brown ( )
static
static Color cv::viz::Color::celestial_blue ( )
static
static Color cv::viz::Color::chartreuse ( )
static
static Color cv::viz::Color::cherry ( )
static
Matx<double , m, 1> cv::Matx< double , m, n >::col ( int  i) const
inherited

extract the matrix column

Scalar_<double > cv::Scalar_< double >::conj ( ) const
inherited
Vec cv::Vec< double , cn >::cross ( const Vec< double, 4 > &  v) const
inherited

cross product of the two 3D vectors.

For other dimensionalities the exception is raised

static Color cv::viz::Color::cyan ( )
static
double cv::Matx< double , m, n >::ddot ( const Matx< double , m, n > &  v) const
inherited

dot product computed in double-precision arithmetics

static Matx cv::Matx< double , m, n >::diag ( const diag_type d)
staticinherited
diag_type cv::Matx< double , m, n >::diag ( ) const
inherited

extract the matrix diagonal

Matx<double , m, n> cv::Matx< double , m, n >::div ( const Matx< double , m, n > &  a) const
inherited

divide two matrices element-wise

double cv::Matx< double , m, n >::dot ( const Matx< double , m, n > &  v) const
inherited

dot product computed with the default precision

static Matx cv::Matx< double , m, n >::eye ( )
staticinherited
Matx<double , m1, n1> cv::Matx< double , m, n >::get_minor ( int  i,
int  j 
) const
inherited

extract part of the matrix

static Color cv::viz::Color::gold ( )
static
static Color cv::viz::Color::gray ( )
static
static Color cv::viz::Color::green ( )
static
static Color cv::viz::Color::indigo ( )
static
Matx<double , n, m> cv::Matx< double , m, n >::inv ( int  method = DECOMP_LU,
bool *  p_is_ok = NULL 
) const
inherited

invert the matrix

bool cv::Scalar_< double >::isReal ( ) const
inherited
static Color cv::viz::Color::lime ( )
static
static Color cv::viz::Color::magenta ( )
static
static Color cv::viz::Color::maroon ( )
static
static Color cv::viz::Color::mlab ( )
static
Matx<double , m, n> cv::Matx< double , m, n >::mul ( const Matx< double , m, n > &  a) const
inherited

multiply two matrices element-wise

Vec cv::Vec< double , cn >::mul ( const Vec< double , cn > &  v) const
inherited

per-element multiplication

Scalar_<double > cv::Scalar_< double >::mul ( const Scalar_< double > &  a,
double  scale = 1 
) const
inherited

per-element product

static Color cv::viz::Color::navy ( )
static
static Color cv::viz::Color::not_set ( )
static
static Color cv::viz::Color::olive ( )
static
static Matx cv::Matx< double , m, n >::ones ( )
staticinherited
cv::Matx< double , m, n >::operator Matx< T2, m, n > ( ) const
inherited

conversion to another data type

cv::Scalar_< double >::operator Scalar_< T2 > ( ) const
inherited

conversion to another data type

cv::viz::Color::operator Vec3b ( ) const
cv::Vec< double , cn >::operator Vec< T2, cn > ( ) const
inherited

conversion to another data type

const double & cv::Matx< double , m, n >::operator() ( int  i,
int  j 
) const
inherited

element access

double & cv::Matx< double , m, n >::operator() ( int  i,
int  j 
)
inherited
const double & cv::Vec< double , cn >::operator() ( int  i) const
inherited
double & cv::Vec< double , cn >::operator() ( int  i)
inherited
const double & cv::Vec< double , cn >::operator[] ( int  i) const
inherited

element access

double & cv::Vec< double , cn >::operator[] ( int  i)
inherited
static Color cv::viz::Color::orange ( )
static
static Color cv::viz::Color::orange_red ( )
static
static Color cv::viz::Color::pink ( )
static
static Color cv::viz::Color::purple ( )
static
static Matx cv::Matx< double , m, n >::randn ( double  a,
double  b 
)
staticinherited
static Matx cv::Matx< double , m, n >::randu ( double  a,
double  b 
)
staticinherited
static Color cv::viz::Color::raspberry ( )
static
static Color cv::viz::Color::red ( )
static
Matx<double , m1, n1> cv::Matx< double , m, n >::reshape ( ) const
inherited

change the matrix shape

static Color cv::viz::Color::rose ( )
static
Matx<double , 1, n> cv::Matx< double , m, n >::row ( int  i) const
inherited

extract the matrix row

static Color cv::viz::Color::silver ( )
static
Matx<double , n, l> cv::Matx< double , m, n >::solve ( const Matx< double , m, l > &  rhs,
int  flags = DECOMP_LU 
) const
inherited

solve linear system

Vec<double , n> cv::Matx< double , m, n >::solve ( const Vec< double , m > &  rhs,
int  method 
) const
inherited
Matx<double , n, m> cv::Matx< double , m, n >::t ( ) const
inherited

transpose the matrix

static Color cv::viz::Color::teal ( )
static
static Color cv::viz::Color::turquoise ( )
static
static Color cv::viz::Color::violet ( )
static
static Color cv::viz::Color::white ( )
static
static Color cv::viz::Color::yellow ( )
static
static Matx cv::Matx< double , m, n >::zeros ( )
staticinherited

Member Data Documentation

double cv::Matx< double , m, n >::val[m *n]
inherited

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