CvScalar Structure OpenCvSharp Class Library
A container for 1-,2-,3- or 4-tuples of numbers

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

[SerializableAttribute]
public struct CvScalar : IEquatable<CvScalar>

The CvScalar type exposes the following members.

Constructors

  NameDescription
Public methodCvScalar(Double)
Constructor
Public methodCvScalar(Double, Double)
Constructor
Public methodCvScalar(Double, Double, Double)
Constructor
Public methodCvScalar(Double, Double, Double, Double)
Constructor
Top
Properties

  NameDescription
Public propertyItem
Indexer
Top
Methods

  NameDescription
Public methodEquals(Object)
Specifies whether this object contains the same members as the specified Object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(CvScalar)
Specifies whether this object contains the same members as the specified Object.
Public methodGetHashCode
Returns a hash code for this object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberRealScalar
Initializes val[0] with val0, val[1]...val[3] with zeros
Public methodStatic memberScalarAll
Initializes val[0]...val[3] with val0123
Public methodToString
Converts this object to a human readable string.
(Overrides ValueTypeToString.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares two CvPoint objects. The result specifies whether the members of each object are equal.
Public operatorStatic member(Double to CvScalar)
Creates a CvScalar with the members of the specified array.
Public operatorStatic member(CvScalar to Double)
Creates a CvScalar with the specified double array.
Public operatorStatic member(Double to CvScalar)
Creates a CvScalar with the specified double value like cvRealScalar.
Public operatorStatic member(CvScalar to Double)
Returns a double value with the specified CvScalar's Val0.
Public operatorStatic memberInequality
Compares two CvPoint objects. The result specifies whether the members of each object are unequal.
Top
Fields

  NameDescription
Public fieldStatic memberSizeOf
sizeof(CvScalar)
Public fieldVal0
1st element
Public fieldVal1
2nd element
Public fieldVal2
3rd element
Public fieldVal3
4th element
Top
See Also

Reference