Class to build a filter for the blob search. More...
#include <cvb/foundation/blob.hpp>
Public Member Functions | |
| BlobFilter ()=default | |
| Default filter without any filter set. | |
| Cvb::Foundation::Blob::BlobBorderFilter | BorderFilter () const noexcept |
| Gets whether to filter blobs that touch the borders of the image. | |
| void | SetBorderFilter (Cvb::Foundation::Blob::BlobBorderFilter borderFilter) noexcept |
| Sets whether to filter blobs that touch the borders of the image. | |
| bool | ContainsRangeFilter (BlobRangeFilter rangeFilter) const noexcept |
| Check if a range filter exists. | |
| ValueRange< int > & | operator[] (BlobRangeFilter rangeFilter) |
| Sets the range filters via an attribute. | |
Friends | |
| std::vector< BlobResult > | BinarizeAndSearchBlobs (const ImagePlane &plane, ValueRange< int > binarizationThreshold, const BlobFilter &filter) |
| Searches for all blobs in the given image plane. | |
| std::vector< BlobResult > | BinarizeAndSearchBlobs (const ImagePlane &plane, ValueRange< int > binarizationThreshold, Rect< int > aoi, const BlobFilter &filter) |
| Searches for all blobs in the given image plane. | |
| std::vector< BlobResult > | SearchBlobs (const Image &binarizedImage, const BlobFilter &filter) |
| Searches for all blobs in the given binarized image. | |
| std::vector< BlobResult > | SearchBlobs (const Image &binarizedImage, Rect< int > aoi, const BlobFilter &filter) |
| Searches for all blobs in the given binarized image. | |
Class to build a filter for the blob search.
|
default |
Default filter without any filter set.
| Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Gets whether to filter blobs that touch the borders of the image.
| Does | not throw any exception. |
|
inlinenoexcept |
Check if a range filter exists.
| [in] | rangeFilter | The range filter attribute. |
| Does | not throw any exception. |
|
inline |
Sets the range filters via an attribute.
| [in] | rangeFilter | The filter range attribute. |
| Any | exception derived from std::exception including CvbException. |
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().
|
inlinenoexcept |
Sets whether to filter blobs that touch the borders of the image.
| [in] | borderFilter | The border filter flags. |
| Does | not throw any exception. |
|
friend |
Searches for all blobs in the given image plane.
| [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. |
| Any | exception derived from std::exception including CvbException. |
|
friend |
Searches for all blobs in the given image plane.
| [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. |
| Any | exception derived from std::exception including CvbException. |
|
friend |
Searches for all blobs in the given binarized image.
| [in] | binarizedImage | Image consisting only of 0 and 255. |
| [in] | filter | Filter which blobs are to be returned. |
| Any | exception derived from std::exception including CvbException. |
Image containing pixels with values 0 or 255. 255 marks an object.
|
friend |
Searches for all blobs in the given binarized image.
| [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. |
| Any | exception derived from std::exception including CvbException. |
Image containing pixels with values 0 or 255. 255 marks an object.