Table of Contents

Constructor ColorCorrectionModel

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ColorCorrectionModel()

The default constructor.

public ColorCorrectionModel()

ColorCorrectionModel(InputArray, ColorCheckerType)

Color Correction Model, initialized from a built-in color card.

public ColorCorrectionModel(InputArray src, ColorCheckerType constColor)

Parameters

src InputArray

detected colors of ColorChecker patches; the color type is RGB not BGR, and the color values are in [0, 1].

constColor ColorCheckerType

the built-in color card.

ColorCorrectionModel(InputArray, InputArray, ColorSpace)

Color Correction Model, initialized from explicit reference color values.

public ColorCorrectionModel(InputArray src, InputArray colors, ColorSpace refColorSpace)

Parameters

src InputArray

detected colors of ColorChecker patches; the color type is RGB not BGR, and the color values are in [0, 1].

colors InputArray

the reference color values, the color values are in [0, 1].

refColorSpace ColorSpace

the corresponding color space; if the color type is some RGB, the format is RGB not BGR.

ColorCorrectionModel(InputArray, InputArray, ColorSpace, InputArray)

Color Correction Model, initialized from explicit reference color values and a colored-patches mask.

public ColorCorrectionModel(InputArray src, InputArray colors, ColorSpace refColorSpace, InputArray coloredPatchesMask)

Parameters

src InputArray

detected colors of ColorChecker patches; the color type is RGB not BGR, and the color values are in [0, 1].

colors InputArray

the reference color values, the color values are in [0, 1].

refColorSpace ColorSpace

the corresponding color space; if the color type is some RGB, the format is RGB not BGR.

coloredPatchesMask InputArray

binary mask indicating which patches are colored (non-gray) patches.