Nodes/comfyui_cv/CV Chromatic Aberration Correction
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.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Chromatic Aberration Correction
  • image
  • IMAGE
calibration_file
bayer_patternCOLOR_BayerRGGB2BGR
Categoryimage/CV

Inputs (3)

NameTypeDefaultDescription
imageIMAGEInput image to correct. A batch is processed frame by frame.
calibration_fileCOMBOCalibration file from input/calib/ (.yaml/.xml). Refresh node definitions (reload the page) to pick up files added during the same session.
bayer_patternoptCOMBOCOLOR_BayerRGGB2BGRBayer CFA layout for single-channel raw input. Ignored when the image already has 3 channels.

Outputs (1)

NameTypeDescription
IMAGEIMAGE