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
srcInputArraydetected colors of ColorChecker patches; the color type is RGB not BGR, and the color values are in [0, 1].
constColorColorCheckerTypethe 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
srcInputArraydetected colors of ColorChecker patches; the color type is RGB not BGR, and the color values are in [0, 1].
colorsInputArraythe reference color values, the color values are in [0, 1].
refColorSpaceColorSpacethe 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
srcInputArraydetected colors of ColorChecker patches; the color type is RGB not BGR, and the color values are in [0, 1].
colorsInputArraythe reference color values, the color values are in [0, 1].
refColorSpaceColorSpacethe corresponding color space; if the color type is some RGB, the format is RGB not BGR.
coloredPatchesMaskInputArraybinary mask indicating which patches are colored (non-gray) patches.