public sealed class ColorInfo : IMessage<ColorInfo>, IEquatable<ColorInfo>, IDeepCloneable<ColorInfo>, IBufferMessage, IMessage
Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
Implements
IMessage<ColorInfo>, IEquatable<ColorInfo>, IDeepCloneable<ColorInfo>, IBufferMessage, IMessageNamespace
Google.Cloud.Vision.V1Assembly
Google.Cloud.Vision.V1.dll
Constructors
ColorInfo()
public ColorInfo()
ColorInfo(ColorInfo)
public ColorInfo(ColorInfo other)
Parameter | |
---|---|
Name | Description |
other | ColorInfo |
Properties
Color
public Color Color { get; set; }
RGB components of the color.
Property Value | |
---|---|
Type | Description |
Color |
PixelFraction
public float PixelFraction { get; set; }
The fraction of pixels the color occupies in the image. Value in range [0, 1].
Property Value | |
---|---|
Type | Description |
Single |
Score
public float Score { get; set; }
Image-specific score for this color. Value in range [0, 1].
Property Value | |
---|---|
Type | Description |
Single |