Skip to main content

Overview

The VOIDQuadmaskPreprocess node prepares a mask for VOID inpainting by converting it into a special four-level “quadmask.” It takes an input mask, optionally dilates the primary region, then quantizes the mask values into four distinct levels representing different semantic regions (primary object, overlap, affected area, and background). Finally, it inverts and normalizes the mask so the output values are in the range [0, 1], where 1.0 indicates the area to remove and 0.0 indicates the area to keep.

Inputs

ParameterDescriptionData TypeRequiredRange
maskThe input mask to be preprocessed.MASKYesN/A
dilate_widthDilation radius for the primary mask region. A value of 0 means no dilation is applied. (default: 0)INTNo0 to 50 (step: 1)

Outputs

Output NameDescriptionData Type
quadmaskThe preprocessed quadmask with values in [0, 1], representing four discrete levels: 1.0 (primary object to remove), ~0.75 (overlap of primary and affected), ~0.50 (affected region), and 0.0 (background to keep).MASK
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): a972ff74686baaa3a3659a74517d3b6f7335e8f62d09be9329d0e71d1fad137a