Grow Mask

comfyUI节点-GrowMask|遮罩扩展

Documentation

  • Class name: GrowMask
  • Category: mask
  • Output node: False

The GrowMask node is designed to modify the size of a given mask, either expanding or contracting it, while optionally applying a tapered effect to the corners. This functionality is crucial for dynamically adjusting mask boundaries in image processing tasks, allowing for more flexible and precise control over the area of interest.

Input types

ParameterComfy dtypeDescription
maskMASKThe input mask to be modified. This parameter is central to the node's operation, serving as the base upon which the mask is either expanded or contracted.
expandINTDetermines the magnitude and direction of the mask modification. Positive values cause the mask to expand, while negative values lead to contraction. This parameter directly influences the final size of the mask.
tapered_cornersBOOLEANA boolean flag that, when set to True, applies a tapered effect to the corners of the mask during modification. This option allows for smoother transitions and visually appealing results.

Output types

ParameterComfy dtypeDescription
maskMASKThe modified mask after applying the specified expansion/contraction and optional tapered corners effect.