Table of Contents

Struct Lab

Namespace
Emgu.CV.Structure
Assembly
Emgu.CV.dll

Defines a CIE Lab color

[ColorInfo(ConversionCodename = "Lab")]
public struct Lab : IColor, IEquatable<Lab>
Implements
Inherited Members

Constructors

Lab(double, double, double)

Create a CIE Lab color using the specific values

public Lab(double x, double y, double z)

Parameters

x double

The x value for this color

y double

The y value for this color

z double

The z value for this color

Properties

Dimension

Get the dimension of this color

public int Dimension { get; }

Property Value

int

MCvScalar

Get or Set the equivalent MCvScalar value

public MCvScalar MCvScalar { get; set; }

Property Value

MCvScalar

X

Get or set the intensity of the x color channel

public double X { get; set; }

Property Value

double

Y

Get or set the intensity of the y color channel

public double Y { get; set; }

Property Value

double

Z

Get or set the intensity of the z color channel

public double Z { get; set; }

Property Value

double

Methods

Equals(Lab)

Return true if the two color equals

public bool Equals(Lab other)

Parameters

other Lab

The other color to compare with

Returns

bool

true if the two color equals

ToString()

Represent this color as a String

public override string ToString()

Returns

string

The string representation of this color