Nodes/comfyui_cv/CV Align MTB
ComfyUI Node

CV Align MTB

Aligns a batch of images using the Median Threshold Bitmap algorithm (cv2.AlignMTB.process). Each frame is globally shifted to register with the others, correcting small camera motions between bracketed exposures before HDR fusion. Connect a batch of 2+ frames and get aligned images back in the same format (IMAGE/MASK/NPARRAY/LATENT).

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Align MTB
  • image
  • image
max_bits6
exclude_range4
cuttrue
Categoryimage/CV/hdr

Inputs (4)

NameTypeDefaultDescription
imageCOMFY_MATCHTYPE_V3Batch of 2+ images to align. Accepts IMAGE, MASK, NPARRAY (list or 4-D array), or LATENT. 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.
max_bitsINT61–32Maximum bit depth for the median bitmaps. 6 is typical; higher captures finer intensity variation but also more noise.
exclude_rangeINT40–128Half-width of the pixel-value range excluded from the median threshold bitmap. Helps reject noise.
cutBOOLEANtrueExclude the darkest and brightest pixels from the median threshold bitmap.

Outputs (1)

NameTypeDescription
imageCOMFY_MATCHTYPE_V3Aligned images in the same format as the input.