pub struct ColorCorrectionModel { /* private fields */ }
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;

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

Trait Implementations

Wrap the specified raw pointer Read more
Return an the underlying raw pointer while consuming this wrapper. Read more
Return the underlying raw pointer. Read more
Return the underlying mutable raw pointer Read more
set ColorSpace Read more
set ccm_type Read more
set Distance Read more
set Linear Read more
set Gamma Read more
set degree Read more
set SaturatedThreshold. The colors in the closed interval [lower, upper] are reserved to participate in the calculation of the loss function and initialization parameters Read more
set WeightsList Read more
set WeightCoeff Read more
set InitialMethod Read more
set MaxCount Read more
set Epsilon Read more
make color correction
Infer using fitting ccm. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.