Image Pad For Outpaint Target Size
节点功能:将图像填充到指定的目标尺寸,并生成相应的掩码,特别适合用于外绘(outpainting)工作流程。Image Pad For Outpaint Target
节点中英文对比
Image Pad For Outpaint Target Size
target_width
target_height
feathering
upscale_method
Image Pad For Outpaint Target Size
target_width
target_height
feathering
upscale_method
Image Pad For Outpaint Target Size - 参数说明
输入参数
image
输入图像。
mask
可选遮罩,用于指定需保留区域。
输出参数
IMAGE
处理后的图像,已缩放并居中填充至目标尺寸。
MASK
对应缩放与填充后的遮罩图。
控件参数
target_width
目标宽度(像素),单位为整数。默认值 0 表示保持原图宽度。
target_height
目标高度(像素),单位为整数。默认值 0 表示保持原图高度。
feathering
图像边缘羽化处理的范围,单位像素。默认值为 0。
upscale_method
插值算法
lanczos:推荐用于缩小图像时保留更多细节;
- bilinear:常规插值,处理速度快,适合多数场景;
- area:对缩小图像表现较好;
- bicubic:平滑细腻;
- nearest-exact:最简单的插值,保留硬边界。
暂无节点说明