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).
CV Align MTB
- image
- image
◄max_bits6►
◄exclude_range4►
◄cuttrue►
Categoryimage/CV/hdr
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | COMFY_MATCHTYPE_V3 | Batch 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_bits | INT | 61–32 | Maximum bit depth for the median bitmaps. 6 is typical; higher captures finer intensity variation but also more noise. |
| exclude_range | INT | 40–128 | Half-width of the pixel-value range excluded from the median threshold bitmap. Helps reject noise. |
| cut | BOOLEAN | true | Exclude the darkest and brightest pixels from the median threshold bitmap. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | COMFY_MATCHTYPE_V3 | Aligned images in the same format as the input. |