Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::core::ChromaAndRGBClassifier Struct Reference

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

#include <ChromaAndRGBClassifier.h>

List of all members.

Public Member Functions

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

Public Attributes

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

Detailed Description

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


Member Function Documentation

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];
          }
void icl::core::ChromaAndRGBClassifier::show ( ) const [inline]

shows this classifier to std::out


Member Data Documentation

r-g-b reference color

r-g-b threshold


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