# FindBlobs Example

The FindBlobs function is used to filter and sort the blobs returned in a Blobs data structure. This example will help to illustrate how the FindBlobs parameter settings can be set to examine a list of blobs, and only return those blobs that match a specified ideal.

Utilizing the same image and Blobs data structure from the DetectBlobs example, a FindBlobs function was inserted into the spreadsheet, which automatically launches the FindBlobs Property Sheet. For the purposes of this example, the blobs are being examined and the parameters are being set to return only those blobs with 1 or fewer holes in them, regardless of any other criteria.

Based upon these requirements, the FindBlobs parameters would be configured as follows:

- Blobs: This parameter was set as an absolute cell reference to the previously created DetectBlobs Blobs data structure.
- Number to Find: This parameter was set to 1, because the image contains only one such blob. Had this parameter been set higher, the cells below the one returned blob would have been #ERR.

- Accept Thresh: The default setting was used. By using this setting in situations where there is less certainty in regards to the blobs, the lower the threshold guarantees that more blobs are returned, though their similarity to the ideal decreases.

  Because the blobs are being examined to return only blobs with 1 or fewer holes in them, the only parameter that needs to be configured is the Holes parameter. All the other blob properties parameters are left at their default settings, except for their Weight settings, which is set to 0.

- Holes: In this instance the Holes Number value is set to 0, while the Range value is reduced to 0 and the Weight is set to 100. This guarantees that only those blobs in the Blobs data structure with 0 are returned in the resulting FindBlobs Blobs data structure and results table: