
Regional spread calculation from textile stain masks
A stain spreading along fibres can occupy very different areas within the same defect box; box count does not show its regional coverage or merging stains.
Link the stain mask and zone-area fraction to the roll position. Mark the decision region on the fabric and hold an out-of-limit section for review.

- 01 Position
- 02 Raw image
- 03 Mask generation
- 04 Region calculation
- 05 Decision
Register the ROI; occluded areas are excluded from visible-area calculations.
- Target-mask area
- —
- Connected regions / objects
- —
- Decision metric
- —
Scenes are illustrative simulations; they are not customer references or performance guarantees.
Solution approach
Pixel or instance masks are derived from the raw image; a coded legend separates background and target regions. Area fractions use only the visible ROI. Separate stain pixels from intact fabric and compute coverage per strip zone plus connected-stain count. The weave remains a separate background.
Process steps
- 01
Position
Register the ROI; occluded areas are excluded from visible-area calculations.
- 02
Raw image
Keep the controlled raw image in a separate panel.
- 03
Mask generation
Coded colours show target classes or object identities.
- 04
Region calculation
Derive area fraction, connected regions and the decision metric from the mask.
- 05
Decision
Hold an out-of-limit sample for review with its local region marked.
Related applications
Let us assess your application together
We test your sample in our laboratory and report on resolution, optics and lighting selection.







