CVB.Net 14.0
ConvertColorSpace Class Reference

Simple color space conversion routines that are covered by the CVB Image Manager license. More...

Static Public Member Functions

static Image ToMono (Image img, MonochromeConversion conversion)
 Convert the input image to mono. The input image needs to have three planes, and is then assumed to be an RGB image. More...
 
static Image ToMono (Image img)
 Convert the input image to mono. The input image needs to have three planes, and is then assumed to be an RGB image. More...
 
static Image ToMono (Image img, double weightR, double weightG, double weightB)
 Convert the input image to mono. The input image needs to have three planes, and is then assumed to be an RGB image. More...
 
static Image ToRichColorFeatures (Image img)
 Convert the input RGB image to a color feature image that contains additional planes with RG, RB, GB, RR, GG and BB (normalized to the value range). More...
 

Detailed Description

Simple color space conversion routines that are covered by the CVB Image Manager license.

For more sophisticated functions have a look at Stemmer.Cvb.Foundation.ConvertColorSpace.

Member Function Documentation

◆ ToMono() [1/3]

static Image ToMono ( Image  img)
static

Convert the input image to mono. The input image needs to have three planes, and is then assumed to be an RGB image.

Parameters
imgImage to be converted.
Returns
Converted image.

◆ ToMono() [2/3]

static Image ToMono ( Image  img,
double  weightR,
double  weightG,
double  weightB 
)
static

Convert the input image to mono. The input image needs to have three planes, and is then assumed to be an RGB image.

Parameters
imgImage to be converted.
weightRWeight for the red channel.
weightGWeight for the green channel.
weightBWeight for the blue channel.
Returns
Converted image.

◆ ToMono() [3/3]

static Image ToMono ( Image  img,
MonochromeConversion  conversion 
)
static

Convert the input image to mono. The input image needs to have three planes, and is then assumed to be an RGB image.

Parameters
imgimage to be converted
conversionweighting method to apply
Returns
Converted image.

◆ ToRichColorFeatures()

static Image ToRichColorFeatures ( Image  img)
static

Convert the input RGB image to a color feature image that contains additional planes with RG, RB, GB, RR, GG and BB (normalized to the value range).

Parameters
imgInput image. Must be RGB and have the same data type on each plane.
Returns
Converted image.