Loading [MathJax]/extensions/tex2jax.js

You are here: Start » Tutorial Exercises » Sorting Blobs

Sorting Blobs

Aim:

Create an application that extracts blobs and sorts them by ascending area. Also find the smallest and the biggest blob.

Input:

An image that contains several objects with different shapes and sizes.

Images are stored in the sorting directory.

Output:

  1. An array of all blobs sorted by ascending area.
  2. The smallest blob.
  3. The biggest blob.

Hints:

In the first step, blobs must be extracted from the image. In this case the ThresholdToRegion can be used.

For the main part of the solution consider the following filters: SortRegions, GetMinimumRegion, GetMaximumRegion.

Labeling connections is explained in this article.

Solution (FIS):

►Click here to show the solution.

Further Readings

  • Blob Analysis - Article presents detailed information about the Blob Analysis technique.