![]() |
Image Component Library (ICL)
|
Utility class for region-based colored blob detection. More...
#include <SimpleBlobSearcher.h>
Classes | |
| struct | Blob |
| Internal blob-result type. More... | |
Public Member Functions | |
| SimpleBlobSearcher () | |
| Default constructor. More... | |
| ~SimpleBlobSearcher () | |
| Destructor. More... | |
| void | add (const core::Color &color, float thresh, const utils::Range32s &sizeRange) |
| Adds a new reference color, with threshold and size range. More... | |
| void | adapt (int index, const core::Color &color, float thresh, const utils::Range32s &sizeRange) |
| Updates data for given index. More... | |
| void | remove (int index) |
| removes reference color at given index More... | |
| void | clear () |
| const std::vector< Blob > & | detect (const core::Img8u &image) |
| Actual detection function (no ROI support yet!) More... | |
Private Attributes | |
| Data * | m_data |
| internal data pointer More... | |
Additional Inherited Members | |
Protected Member Functions inherited from icl::utils::Uncopyable | |
| Uncopyable () | |
| Empty base constructor. More... | |
Utility class for region-based colored blob detection.
The SimpleBlobSearcher is a re-implementation of the RegionBasedBlobSearcher class. It provides less features, but it's usability was increased significantly.
Given: A set of reference color tuples
with
where
And a given image 
,SIZE)



,
, i) | icl::cv::SimpleBlobSearcher::SimpleBlobSearcher | ( | ) |
Default constructor.
| icl::cv::SimpleBlobSearcher::~SimpleBlobSearcher | ( | ) |
Destructor.
| void icl::cv::SimpleBlobSearcher::adapt | ( | int | index, |
| const core::Color & | color, | ||
| float | thresh, | ||
| const utils::Range32s & | sizeRange | ||
| ) |
Updates data for given index.
| void icl::cv::SimpleBlobSearcher::add | ( | const core::Color & | color, |
| float | thresh, | ||
| const utils::Range32s & | sizeRange | ||
| ) |
Adds a new reference color, with threshold and size range.
| void icl::cv::SimpleBlobSearcher::clear | ( | ) |
| const std::vector<Blob>& icl::cv::SimpleBlobSearcher::detect | ( | const core::Img8u & | image | ) |
Actual detection function (no ROI support yet!)
detects blobs in given image
| void icl::cv::SimpleBlobSearcher::remove | ( | int | index | ) |
removes reference color at given index
|
private |
internal data pointer
1.8.15