TTP_Expand_And_Mask
节点功能:该节点将输入图像在指定方向上扩展,并为扩展区域创建相应的蒙版TTP_Expand_And_
节点中英文对比
TTP_Expand_And_Mask
fill_mode
fill_alpha_decision
fill_color
expand_left
expand_right
expand_top
expand_bottom
num_blocks_left
num_blocks_right
num_blocks_top
num_blocks_bottom
TTP_Expand_And_Mask
fill_mode
fill_alpha_decision
fill_color
expand_left
expand_right
expand_top
expand_bottom
num_blocks_left
num_blocks_right
num_blocks_top
num_blocks_bottom
TTP_Expand_And_Mask - 参数说明
输入参数
image
输入图像.
输出参数
EXPANDED_IMAGE
扩展后的图像,按需要转换为 RGB。
MASK
新增区域(含原图透明度)蒙版。
控件参数
fill_mode
扩展区域填充方式(复制/白色)。建议默认使用 duplicate 保留图像结构。
fill_alpha_decision
是否填充透明区域为颜色,True 可强制 RGBA 转 RGB 并填色。
fill_color
透明区域填充颜色(HEX 格式)。
expand_left
是否向左扩展。
expand_right
是否向右扩展。
expand_top
是否向上扩展。
expand_bottom
是否向下扩展。
num_blocks_left
向左扩展的块数。单块宽度为原图宽度。
num_blocks_right
向右扩展的块数。单块宽度为原图宽度。
num_blocks_top
向上扩展的块数。单块高度为原图高度。
num_blocks_bottom
向下扩展的块数。单块高度为原图高度。
暂无节点说明