ComfyUI Node
🔄 AffineTransform2img
# 透视变换屏幕映射器 **使用四个角点执行透视变换:** **输入:** - 背景图像:包含屏幕的图像 - 源图像:要映射到屏幕的内容 - 四个点:从Canvas选择器获得的角点坐标 **输出:** - 映射后的完整图像 - 裁剪的屏幕区域 - 屏幕区域遮罩 **混合模式:** replace, overlay, multiply, screen
🔄 AffineTransform2img
- background_image
- source_image
- mapped_image
- cropped_screen
- screen_mask
◄four_points—►
◄blend_modereplace►
◄opacity1.00►
◄crop_to_screentrue►
CategoryImageNodes
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| background_image | IMAGE | — | |
| source_image | IMAGE | — | |
| four_points | STRING | — | |
| blend_modeopt | COMBO | replace | 4 options: replace, overlay, multiply, screen |
| opacityopt | FLOAT | 1.000–1 | — |
| crop_to_screenopt | BOOLEAN | true | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| mapped_image | IMAGE | — |
| cropped_screen | IMAGE | — |
| screen_mask | MASK | — |