Table of Contents

Struct Hls

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

Defines a Hls (Hue Lightness Satuation) color

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

Constructors

Hls(double, double, double)

Create a Hls color using the specific values

public Hls(double hue, double lightness, double satuation)

Parameters

hue double

The hue value for this color ( 0 < hue < 180 )

lightness double

The lightness for this color

satuation double

The satuation for this color

Properties

Dimension

Get the dimension of this color

public int Dimension { get; }

Property Value

int

Hue

Get or set the intensity of the hue color channel ( 0 < hue < 180 )

public double Hue { get; set; }

Property Value

double

Lightness

Get or set the intensity of the lightness color channel

public double Lightness { get; set; }

Property Value

double

MCvScalar

Get or Set the equivalent MCvScalar value

public MCvScalar MCvScalar { get; set; }

Property Value

MCvScalar

Satuation

Get or set the intensity of the satuation color channel

public double Satuation { get; set; }

Property Value

double

Methods

Equals(Hls)

Return true if the two color equals

public bool Equals(Hls other)

Parameters

other Hls

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