ComfyUI Node
CV Create CCM Model
Creates and fits a Color Correction Model from detected color patches. The fitted model can be applied to images with 'Apply Color Correction'.
CV Create CCM Model
- color_patches
- ccm_model
- ccm_matrix
- loss
◄ccm_typeCCM_LINEAR►
◄color_spaceCOLOR_SPACE_SRGB►
◄distanceDISTANCE_CIE2000►
◄linearizationLINEARIZATION_GAMMA►
◄linearization_gamma2.2►
◄linearization_degree3►
◄color_checkerCOLORCHECKER_MACBETH►
◄saturated_lower0.00►
◄saturated_upper0.00►
Categoryimage/CV/ccm
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| color_patches | NPARRAY | Detected patch colors from 'Detect Color Checker' [N,1,3] float64 in [0,1]. | |
| ccm_type | COMBO | CCM_LINEAR | CCM_LINEAR: 3x3 matrix (no offset). CCM_AFFINE: 4x3 matrix (with offset). |
| color_space | COMBO | COLOR_SPACE_SRGB | Working color space for the correction. |
| distance | COMBO | DISTANCE_CIE2000 | Color distance metric used in optimization. CIE2000 is most perceptually accurate. |
| linearization | COMBO | LINEARIZATION_GAMMA | Linearization method before applying CCM. GAMMA is the standard choice. |
| linearization_gamma | FLOAT | 2.20.1–5 | Gamma value for LINEARIZATION_GAMMA. |
| linearization_degree | INT | 31–10 | Polynomial degree for POLYFIT/LOGPOLYFIT methods. |
| color_checker | COMBO | COLORCHECKER_MACBETH | Reference color checker type (must match chart). |
| saturated_lower | FLOAT | 0.000–1 | Lower saturation threshold for filtering patches. |
| saturated_upper | FLOAT | 0.000–1 | Upper saturation threshold (0 = disabled). |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| ccm_model | CCM_MODEL | Fitted color correction model. |
| ccm_matrix | NPARRAY | The computed 3x3 or 4x3 color correction matrix. |
| loss | FLOAT | Fit quality metric (lower is better). |