Simultaneous Connected-Component Confetti Elimination Without Directional Drift
Why Isolated Single Stitches Frustrate Real-World Embroidery
JPEG compression noise, camera sensor grain, and specular foliage highlights routinely produce scattered one-stitch islands—"confetti stitches"—that force constant needle re-threading or long diagonal back-side carries that shadow through pale Aida fabric and snarl hoop tension.
Sequential top-left-to-bottom-right majority filters introduce directional bias: early replacements mutate neighbor labels for downstream pixels in the same pass, smearing thin stems downward and rightward unpredictably.
Order-Independent Simultaneous Passes & Lowest-ΔE00 Neighbor Selection
Our cleaner labels every 4-connected (or 8-connected) same-color component across the frozen pass snapshot simultaneously. Any island smaller than your minimum cell threshold (for example under 3 cells) evaluates its mean original source CIE L*a*b* D65 color against every touching stitched neighbor color and adopts the neighbor with lowest CIEDE2000 error.
- Snapshots prevent cascading directional bias; top-left and bottom-right confetti speckles resolve symmetrically.
- Ties between equally close touching colors break deterministically by ascending Standard 6-Strand Floss Code.
- Iteration caps strictly at three passes so intentional three-cell eyes, buttons, and floral buds remain crisp.