Nodes/comfyui_cv/cv2.correctChromaticAberration
ComfyUI Node

cv2.correctChromaticAberration

Raw wrapper of cv2.correctChromaticAberration(input_image, coefficients, image_size, calib_degree, bayer_pattern?). Parameters marked '?' are optional; blank means OpenCV default. See the OpenCV documentation for details.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
cv2.correctChromaticAberration
  • input_image
  • coefficients
  • image_size
  • nparray
calib_degree0
bayer_patternCOLOR_BayerRGGB2BGR
Categoryimage/CV/low-level/cv2 C

Inputs (5)

NameTypeDefaultDescription
input_imageNPARRAY,IMAGE,MASKInput BGR image to correct Accepts a ComfyUI IMAGE/MASK directly (frame 0 of a batch) or an NPARRAY. Arithmetic ops (add, multiply, etc.) process the full IMAGE batch when both inputs have the same batch size.
coefficientsNPARRAYCoefficient model A data array (points / matrix), NOT an image - only an NPARRAY link is accepted here.
image_sizeCV_TUPLE0,0Size of images for the calibration coefficient model One value with 2 components (w, h) - it travels as a whole, so it cannot arrive half-connected. Wire it from 'CV Tuple' or type the components in place.
calib_degreeINT0-2147483648–2147483647Degree of the calibration coefficient model
bayer_patternoptCOMBOCOLOR_BayerRGGB2BGRBayer pattern code (e.g. cv::COLOR_BayerBG2BGR) used for demosaicing when @p input_image has one channel; ignored otherwise.

Outputs (1)

NameTypeDescription
nparrayNPARRAY