# 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 that was created in the DetectBlobs example, a FindBlobs function was inserted into the spreadsheet, which will automatically launch 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 will be 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 will need to be configured is the Holes parameter. All the other blob properties parameters will be left at their default settings, except for their Weight settings, which will be 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 will be returned in the resulting FindBlobs Blobs data structure and results table: