Mask From Segmentation
节点中英文对比
Mask From Segmentation
segments
remove_isolated_pixels
remove_small_masks
fill_holes
Mask From Segmentation
segments
remove_isolated_pixels
remove_small_masks
fill_holes
Mask From Segmentation - 参数说明
输入参数
image
输入待处理的图像
输出参数
MASK
输出处理后的遮罩
控件参数
segments
分割颜色数量(聚类色彩数)。
默认:6,范围:1–16。
值越大,分割越细腻
值越小,分割越粗糙。
设置过大可能导致遮罩图被视为无效而被丢弃。
remove_isolated_pixels
去除孤立像素的内核大小(结构元素尺寸)。
默认:0(不去除),范围:0–32。
值越大,去除的小斑点越大,但可能误删细节,且导致遮罩图被视为无效而被丢弃。
remove_small_masks
去除小面积 Mask 的阈值,按面积占整图比例过滤。
默认:0.0(不过滤),范围:0–1。
例如:0.05 表示删除面积小于 5% 的 Mask。
设置过大可能导更多的致遮罩图被视为无效而被丢弃。
fill_holes
是否填补 Mask 内部空洞。
默认:False。
暂无节点说明