Class to build a filter for the blob search.
More...
#include <cvb/foundation/blob.hpp>
Class to build a filter for the blob search.
- Examples
- Foundation/QmlBlobSearch.
◆ BlobFilter()
Default filter without any filter set.
- Exceptions
-
◆ BorderFilter()
Gets whether to filter blobs that touch the borders of the image.
- Returns
- The border filter flags.
- Exceptions
-
Does | not throw any exception. |
◆ ContainsRangeFilter()
Check if a range filter exists.
- Parameters
-
[in] | rangeFilter | The range filter attribute. |
- Returns
- True if a range filter for the given attribute exists, false otherwise.
- Exceptions
-
Does | not throw any exception. |
◆ operator[]()
Sets the range filters via an attribute.
- Parameters
-
[in] | rangeFilter | The filter range attribute. |
- Returns
- The filter range.
- Exceptions
-
If a a filter range is read from default/empty filter an invalid range is returned. So you should check if a range filter exists for a given attribute using ContainsRangeFilter().
◆ SetBorderFilter()
Sets whether to filter blobs that touch the borders of the image.
- Parameters
-
[in] | borderFilter | The border filter flags. |
- Exceptions
-
Does | not throw any exception. |
◆ BinarizeAndSearchBlobs [1/2]
Searches for all blobs in the given image plane.
- Parameters
-
[in] | plane | Image plane to process. |
[in] | binarizationThreshold | Minimum and maximum gray values (inclusive) to be considered as an object. |
[in] | filter | Filter which blobs are to be returned. |
- Returns
- Unordered blob results.
- Exceptions
-
◆ BinarizeAndSearchBlobs [2/2]
Searches for all blobs in the given image plane.
- Parameters
-
[in] | plane | Image plane to process. |
[in] | binarizationThreshold | Minimum and maximum gray values (inclusive) to be considered as an object. |
[in] | aoi | Region in which blobs are to be searched. |
[in] | filter | Filter which blobs are to be returned. |
- Returns
- Unordered blob results.
- Exceptions
-
◆ SearchBlobs [1/2]
Searches for all blobs in the given binarized image.
- Parameters
-
[in] | binarizedImage | Image consisting only of 0 and 255. |
[in] | filter | Filter which blobs are to be returned. |
- Returns
- Unordered blob results.
- Exceptions
-
Image containing pixels with values 0 or 255. 255 marks an object.
◆ SearchBlobs [2/2]
Searches for all blobs in the given binarized image.
- Parameters
-
[in] | binarizedImage | Image consisting only of 0 and 255. |
[in] | aoi | Region in which blobs are to be searched. |
[in] | filter | Filter which blobs are to be returned. |
- Returns
- Unordered blob results.
- Exceptions
-
Image containing pixels with values 0 or 255. 255 marks an object.