Nodes/ComfyUI_MiraSubPack/Image Merge By Pixel Align
ComfyUI Node

Image Merge By Pixel Align

Merge patch image onto base using pixel alignment with center-based coverage blending.

By mirabarukaso·Created 8 months ago·Updated 2 months ago· 0
Image Merge By Pixel Align
  • base_img
  • patch_img
  • IMAGE
bg_color_r255
bg_color_g0
bg_color_b255
bg_tolerance10
core_coverage0.60
blend_width30
blend_strength0.70
blend_modesmooth
sift_features5000
match_ratio0.70
CategoryMira/SubPack

Inputs (12)

NameTypeDefaultDescription
base_imgIMAGE
patch_imgIMAGE
bg_color_rINT2550–255Background color Red component (0-255) to exclude from patch
bg_color_gINT00–255Background color Green component (0-255) to exclude from patch
bg_color_bINT2550–255Background color Blue component (0-255) to exclude from patch
bg_toleranceINT100–100Color distance tolerance for background detection
core_coverageFLOAT0.600–1Core region coverage ratio (0-1), where patch fully covers base
blend_widthINT300–200Width of blend transition in pixels from core edge
blend_strengthFLOAT0.700–1Patch opacity in blend region (0=invisible, 1=fully opaque)
blend_modeCOMBOsmoothBlend transition curve: - 'smooth': sigmoid within blend_width - 'linear': linear within blend_width - 'full_gradient': gradient from core edge to patch edge - 'none': no blend outside core
sift_featuresINT50001000–10000Number of SIFT features to detect
match_ratioFLOAT0.700.5–0.9Lowe's ratio threshold for feature matching

Outputs (1)

NameTypeDescription
IMAGEIMAGE