Nodes/comfyui_cv/CV Paste by BBox
ComfyUI Node

CV Paste by BBox

Pastes crops back at the given bounding boxes - the inverse of 'CV Crop by Masks' / 'CV Crop by BBoxes'. It needs NO policy: it flattens whatever the crop node emitted - one stacked batch or one item per region - and pairs crop i with box i, so both output shapes come home the same way. Works in the target's own type (IMAGE, MASK, NPARRAY or LATENT) and writes the values through untouched, so an unmodified crop round-trips exactly. Connect the crop_masks to paste only the masked region (with optional feathering) instead of the full rectangle.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Paste by BBox
  • image
  • crops
  • bboxes
  • masks
  • image
feather0.0
Categoryimage/CV

Inputs (5)

NameTypeDefaultDescription
imageCOMFY_MATCHTYPE_V3What to paste into. Frame 0 is used; the crops must be the same type.
cropsCOMFY_MATCHTYPE_V3The crop node's 'crops' output, in either shape.
bboxesBOUNDING_BOX[object Object]Core BOUNDING_BOX data: per-frame lists of {x, y, width, height} dicts - compatible with Draw BBoxes, Crop By Bounding Boxes, Image Crop, etc. The crop node's 'bboxes' output (the SNAPPED boxes) - one per crop, in the same order.
featherFLOAT0.00–100Gaussian blur sigma applied to the paste masks for soft seams.
masksoptMASKOptional crop-space masks (white = paste); the full rectangle is pasted if omitted.

Outputs (1)

NameTypeDescription
imageCOMFY_MATCHTYPE_V3The target with every crop pasted in, in its own type.