TOP » Tutorial Exercises » Sorting Blobs (sorting)

Sorting Blobs (sorting)

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 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 (AVS)

►Click here to show the solution.

その他の資料

  • ブロブ解析 - Article presents detailed information about the Blob Analysis technique.