Overview
Extracts a black-and-white mask containing only selected regions from a RegionMap. It is the bridge between the region system and ordinary image nodes such as mask, blend_by_mask, and mask_scatter, enabling region-limited processing such as moss on one stratum or brightness on one face.
Usage tips
The go-to flow is create regions → choose IDs and make a mask here → use
blend_by_maskfor local correction ormask_scatterto scatter within the area.Choose from
All, a specific ID, and other selection methods. Check IDs throughregion_debug_previeworshow_ids.Select a contiguous run of IDs with
IdRange. For separated IDs, create one mask per ID and combine the masks withmask_boolean.Category: Generate / Region / Select
Use: pass regions into existing image nodes such as
Mask,Blend, andMask Scatter
Methods
| Value | Description |
|---|---|
All |
Make every region white in the mask |
Id |
Make only the region matching region_id white |
IdRange |
Make regions from min_id through max_id white |
AreaRange |
Make only regions with area from min_area through max_area white; use it to remove small fragments or extract large surfaces |
Random |
Create a stable random value per region ID and make only regions at or below chance white |
Usage
Connect Region Cells.regions -> Region Mask.regions, then send Region Mask.output
to Mask, Blend, Mask Scatter, or a similar node.
Example:
Region Cells.regions -> Region Mask.regions
Region Mask.output -> Mask.mask
Region Fill colors regions for display; Region Mask selects regions for existing
image processing.
After evaluating the regions input, the ranges of region_id, min_id, and max_id
update to actual region IDs, while min_area and max_area update to the actual
maximum region area.
The difference from Region Filter is the output type. Region Mask outputs a normal
white alpha mask image. Use Region Filter or Region Neighbor Select when region
data should remain region data downstream.
Related nodes
blend_by_mask/mask/mask_scatter— destinations for the output maskregion_filter— filter while preserving region datamask_boolean— combine multiple masksregion_debug_preview— inspect target IDs