Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Member Functions | Private Attributes
icl::cv::SimpleBlobSearcher Class Reference

Utility class for region-based colored blob detection. More...

#include <SimpleBlobSearcher.h>

Inheritance diagram for icl::cv::SimpleBlobSearcher:
icl::utils::Uncopyable

List of all members.

Classes

struct  Blob
 Internal blob-result type. More...

Public Member Functions

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

Private Attributes

Data * m_data
 internal data pointer

Detailed Description

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.

The Segmentation Algorithm

Prerequisites

Given: A set of reference color tuples

\[\{R_i | i \in \{1,N\} \}\]

with

\[R_i=(\mbox{RC}_i,\mbox{T}_i,\mbox{S}_i,\mbox{RD}_i, \mbox{BUF}_i)\]

where

And a given image $I$

Actual Algorithm (Step by Step)


Constructor & Destructor Documentation

Default constructor.

Destructor.


Member Function Documentation

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.

const std::vector<Blob>& icl::cv::SimpleBlobSearcher::detect ( const core::Img8u image)

Actual detection function (no ROI support yet!)

detects blobs in given image

removes reference color at given index


Member Data Documentation

internal data pointer


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines