ComfyUI Node
CV Chromatic Aberration Correction
Corrects lateral chromatic aberration using a polynomial distortion model loaded from a calibration file (cv2.correctChromaticAberration). The calibration is camera-specific: photograph a pattern of black discs on white background, run apps/chromatic-aberration-calibration/ca_calibration.py to produce a .yaml/.xml file, drop it in input/calib/, and pick it here. For 3-channel images the correction is applied directly; for single-channel raw Bayer images, demosaicing is done first using the selected Bayer pattern.
CV Chromatic Aberration Correction
- image
- IMAGE
◄calibration_file▾►
◄bayer_patternCOLOR_BayerRGGB2BGR►
Categoryimage/CV
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image to correct. A batch is processed frame by frame. | |
| calibration_file | COMBO | Calibration file from input/calib/ (.yaml/.xml). Refresh node definitions (reload the page) to pick up files added during the same session. | |
| bayer_patternopt | COMBO | COLOR_BayerRGGB2BGR | Bayer CFA layout for single-channel raw input. Ignored when the image already has 3 channels. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |