Image Component Library (ICL)
Classes | Public Member Functions | Private Attributes | List of all members
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

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...
 

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

◆ SimpleBlobSearcher()

icl::cv::SimpleBlobSearcher::SimpleBlobSearcher ( )

Default constructor.

◆ ~SimpleBlobSearcher()

icl::cv::SimpleBlobSearcher::~SimpleBlobSearcher ( )

Destructor.

Member Function Documentation

◆ adapt()

void icl::cv::SimpleBlobSearcher::adapt ( int  index,
const core::Color color,
float  thresh,
const utils::Range32s &  sizeRange 
)

Updates data for given index.

◆ add()

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.

◆ clear()

void icl::cv::SimpleBlobSearcher::clear ( )

◆ detect()

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

Actual detection function (no ROI support yet!)

detects blobs in given image

◆ remove()

void icl::cv::SimpleBlobSearcher::remove ( int  index)

removes reference color at given index

Member Data Documentation

◆ m_data

Data* icl::cv::SimpleBlobSearcher::m_data
private

internal data pointer


The documentation for this class was generated from the following file: