Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::core::ChromaAndRGBClassifier Struct Reference

Combination classifier using RG-chroma. as well as RGB-thresholded reference color classifiation. More...

#include <ChromaAndRGBClassifier.h>

Public Member Functions

bool operator() (icl8u r, icl8u g, icl8u b) const
 classifies a given r-g-b-Pixel More...
 
void show () const
 shows this classifier to std::out More...
 

Public Attributes

ChromaClassifier c
 wrapped ChromaClassifier More...
 
icl8u ref [3]
 r-g-b reference color More...
 
icl8u thresh [3]
 r-g-b threshold More...
 

Detailed Description

Combination classifier using RG-chroma. as well as RGB-thresholded reference color classifiation.

Member Function Documentation

◆ operator()()

bool icl::core::ChromaAndRGBClassifier::operator() ( icl8u  r,
icl8u  g,
icl8u  b 
) const
inline

classifies a given r-g-b-Pixel

The function is:

bool is_pixel_skin_colored(int r, int g, int b, ChromaClassifier c, int refcol[3], int threshold[3]){
return c(r,g,b)
&& abs(r-refcol[0])<threshold[0]
&& abs(g-refcol[1])<threshold[1]
&& abs(b-refcol[2])<threshold[2];
}

◆ show()

void icl::core::ChromaAndRGBClassifier::show ( ) const
inline

shows this classifier to std::out

Member Data Documentation

◆ c

ChromaClassifier icl::core::ChromaAndRGBClassifier::c

◆ ref

icl8u icl::core::ChromaAndRGBClassifier::ref[3]

r-g-b reference color

◆ thresh

icl8u icl::core::ChromaAndRGBClassifier::thresh[3]

r-g-b threshold


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