Struct opencv::mcc::ColorCorrectionModel [−][src]
pub struct ColorCorrectionModel { /* fields omitted */ }Expand description
Core class of ccm model
Produce a ColorCorrectionModel instance for inference
Implementations
Color Correction Model
Supported list of color cards:
- @ref COLORCHECKER_Macbeth, the Macbeth ColorChecker
- @ref COLORCHECKER_Vinyl, the DKK ColorChecker
- @ref COLORCHECKER_DigitalSG, the DigitalSG ColorChecker with 140 squares
Parameters
-
src: detected colors of ColorChecker patches;
the color type is RGB not BGR, and the color values are in [0, 1]; -
constcolor: the Built-in color card
Color Correction Model
Parameters
-
src: detected colors of ColorChecker patches;
the color type is RGB not BGR, and the color values are in [0, 1]; -
colors: the reference color values, the color values are in [0, 1].
-
ref_cs: the corresponding color space If the color type is some RGB, the format is RGB not BGR;
pub fn new_2(
src: &Mat,
colors: Mat,
ref_cs: COLOR_SPACE,
colored: Mat
) -> Result<ColorCorrectionModel>
pub fn new_2(
src: &Mat,
colors: Mat,
ref_cs: COLOR_SPACE,
colored: Mat
) -> Result<ColorCorrectionModel>
Color Correction Model
Parameters
-
src: detected colors of ColorChecker patches;
the color type is RGB not BGR, and the color values are in [0, 1]; -
colors: the reference color values, the color values are in [0, 1].
-
ref_cs: the corresponding color space If the color type is some RGB, the format is RGB not BGR;
-
colored: mask of colored color
