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:

A region representing the gaps in the input pattern.

Hints:

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

Solution (FIS):

►Click here to show the solution.

Used Filters

►Click here to show the filters list.

Further Readings