| OpenCV 3.4.8 Open Source Computer Vision

Public Member Functions | Public Attributes | List of all members
CvScalar Struct Reference
Core functionality » C structures and operations

`#include <opencv2/core/types_c.h>`

## Public Member Functions
| CvScalar ()
| CvScalar (double d0, double d1=0, double d2=0, double d3=0)
template<typename _Tp >
| CvScalar (const cv::Scalar_< _Tp > &s)
template<typename _Tp , int cn>
| CvScalar (const cv::Vec< _Tp, cn > &v)
template<typename _Tp >
| operator cv::Scalar_< _Tp > () const

## Public Attributes
double | val [4]

## Detailed Description

See also
  Scalar_

## Constructor & Destructor Documentation

## § CvScalar() [1/4]

CvScalar::CvScalar | ( |  | ) |
| inline

## § CvScalar() [2/4]

CvScalar::CvScalar | ( | double | d0,
|  | double | d1 = `0`,
|  | double | d2 = `0`,
|  | double | d3 = `0`
| ) |  |
| inline

## § CvScalar() [3/4]

template<typename _Tp >

CvScalar::CvScalar | ( | const cv::Scalar_< _Tp > & | s | ) |
| inline

## § CvScalar() [4/4]

template<typename _Tp , int cn>

CvScalar::CvScalar | ( | const cv::Vec< _Tp, cn > & | v | ) |
| inline

## Member Function Documentation

## § operator cv::Scalar_< _Tp >()

template<typename _Tp >

CvScalar::operator cv::Scalar_< _Tp > | ( |  | ) | const
| inline

## Member Data Documentation

## § val

double CvScalar::val[4]

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

- opencv2/core/types_c.h