Table of Contents

Struct Vec3b

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

3-Tuple of byte (System.Byte)

[Serializable]
[SuppressMessage("Design", "CA1051: Do not declare visible instance fields")]
public struct Vec3b : IVec<Vec3b, byte>, IVec, IEquatable<Vec3b>
Implements
Inherited Members

Constructors

Vec3b(byte, byte, byte)

Initializer

public Vec3b(byte item0, byte item1, byte item2)

Parameters

item0 byte
item1 byte
item2 byte

Fields

Item0

The value of the first component of this object.

public byte Item0

Field Value

byte

Item1

The value of the second component of this object.

public byte Item1

Field Value

byte

Item2

The value of the third component of this object.

public byte Item2

Field Value

byte

Properties

this[int]

Indexer

public byte this[int i] { readonly get; set; }

Parameters

i int

Property Value

byte

Methods

Add(Vec3b)

this + other

public readonly Vec3b Add(Vec3b other)

Parameters

other Vec3b

Returns

Vec3b

Deconstruct(out byte, out byte, out byte)

Deconstructing a Vector

public readonly void Deconstruct(out byte item0, out byte item1, out byte item2)

Parameters

item0 byte
item1 byte
item2 byte

Divide(double)

this / alpha

public readonly Vec3b Divide(double alpha)

Parameters

alpha double

Returns

Vec3b

Equals(Vec3b)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(Vec3b other)

Parameters

other Vec3b

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Multiply(double)

this * alpha

public readonly Vec3b Multiply(double alpha)

Parameters

alpha double

Returns

Vec3b

Subtract(Vec3b)

this - other

public readonly Vec3b Subtract(Vec3b other)

Parameters

other Vec3b

Returns

Vec3b

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

The fully qualified type name.

ToVec3d()

public Vec3d ToVec3d()

Returns

Vec3d

ToVec3f()

public Vec3f ToVec3f()

Returns

Vec3f

ToVec3i()

public Vec3i ToVec3i()

Returns

Vec3i

ToVec3s()

public Vec3s ToVec3s()

Returns

Vec3s

ToVec3w()

public Vec3w ToVec3w()

Returns

Vec3w

Operators

operator +(Vec3b, Vec3b)

public static Vec3b operator +(Vec3b a, Vec3b b)

Parameters

a Vec3b
b Vec3b

Returns

Vec3b

operator /(Vec3b, double)

public static Vec3b operator /(Vec3b a, double alpha)

Parameters

a Vec3b
alpha double

Returns

Vec3b

operator ==(Vec3b, Vec3b)

public static bool operator ==(Vec3b a, Vec3b b)

Parameters

a Vec3b
b Vec3b

Returns

bool

operator !=(Vec3b, Vec3b)

public static bool operator !=(Vec3b a, Vec3b b)

Parameters

a Vec3b
b Vec3b

Returns

bool

operator *(Vec3b, double)

public static Vec3b operator *(Vec3b a, double alpha)

Parameters

a Vec3b
alpha double

Returns

Vec3b

operator -(Vec3b, Vec3b)

public static Vec3b operator -(Vec3b a, Vec3b b)

Parameters

a Vec3b
b Vec3b

Returns

Vec3b