Loading [MathJax]/extensions/tex2jax.js

You are here: Start » Program Examples » Pattern Cutting

Pattern Cutting

Aim

The task is to detect the gaps in the grid pattern and fill them.

Input

An image with the grid pattern.

Output

Region representing the gaps in the input pattern.

Hints

To detect the gaps, at the beginning fill them using OpenImage and CloseImage filters. Then use ThresholdToRegion_Relative filter to identifies pixels representing the gaps.

Solution (FIS)

►Click here to show the solution.

Used Filters

►Click here to show the filters list.

Further Readings