Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance mask images with customizable outline effect for distinct boundaries and visual appeal.
The OutlineMask
node is designed to enhance your mask images by adding an outline around the masked areas. This can be particularly useful for creating distinct boundaries or emphasizing specific regions within your artwork. The node works by expanding and contracting the mask to generate an outline effect, which can be customized in terms of width and corner style. This functionality is essential for artists looking to add a professional touch to their compositions, ensuring that masked areas are clearly defined and visually appealing.
The mask
parameter is the primary input for the node, representing the mask image that you want to outline. This input should be a binary or grayscale image where the masked areas are typically represented by white (or high intensity) and the unmasked areas by black (or low intensity). The quality and detail of the mask will directly affect the resulting outline.
The outline_width
parameter determines the thickness of the outline to be added around the mask. It accepts integer values with a default of 10, a minimum of 1, and a maximum defined by the system's maximum resolution (MAX_RESOLUTION
). Adjusting this value allows you to control how prominent the outline will be, with larger values creating thicker outlines.
The tapered_corners
parameter is a boolean option that specifies whether the corners of the outline should be tapered (smoothed) or not. The default value is True
, which means the corners will be smoothed to create a more natural and less jagged appearance. Setting this to False
will result in sharper, more angular corners.
The output of the OutlineMask
node is a modified mask image with the added outline. This output retains the same format as the input mask, but with the outlined areas clearly defined. The resulting mask can be used in subsequent processing steps or directly in your artwork to highlight specific regions.
outline_width
values to achieve the desired thickness for your outlines. Thicker outlines can make masked areas more prominent, while thinner outlines provide a subtle enhancement.tapered_corners
option to smooth out the corners of your outlines, especially if you are working with organic shapes or want a more polished look.OutlineMask
node with other mask processing nodes, such as FeatherMask
or InvertMask
, to create complex and visually appealing effects.OutlineMask
node.outline_width
value is set outside the allowed range.outline_width
parameter to be within the specified range (1 to MAX_RESOLUTION
).© Copyright 2024 RunComfy. All Rights Reserved.