Image Component Library (ICL)
|
Dedicated GUI component which can be used to adjust segmentation parameters. More...
#include <ChromaGUI.h>
Public Slots | |
void | blueSliderChanged (int val) |
used for the blue-value visualization slider | |
void | save (const std::string &filename="") |
used for the save-button | |
void | load (const std::string &filename="") |
used for the load-button | |
Public Member Functions | |
ChromaGUI (QWidget *parent=0) | |
Create a new ChromaGUI with given parent widget. | |
core::ChromaClassifier | getChromaClassifier () |
retuns a ChomaClassifier with current parameters | |
core::ChromaAndRGBClassifier | getChromaAndRGBClassifier () |
retuns a CombiClassifier with current parameters | |
Private Attributes | |
ChromaWidget * | m_poChromaWidget |
Wrapped ChromaWidget (an internal class) | |
SliderHandle | m_aoSliderHandles [2][3] |
Handles to the embedded sliders. |
Dedicated GUI component which can be used to adjust segmentation parameters.
The RG-Chromaticity space is a special Color-Space, which can be used for a lighting-independend skin color segmentation. The segmentation is parameterized by two parabolic functions and . The pixel classification rule (is pixels skin-colored or not) can be defindes as follows:
bool is_pixel_skin_colored(int r,int g,int b, Parable p1, Parable p2){ int R = (255*r)/(r+g+b+1); // "+1" to avoid a div-zero int G = (255*g)/(r+g+b+1); return p1(R) > G && p2(R) < G; }
The so called "skin-locus" is defined by the two enclosing parables and . A pixel is skin colored if it is between the two parables - or more precisely: if it is on the bottom side of the first and on the top side of the second.
In addition the ChromaGUI class provides a simple RGB thresholded reference color segmenter, which can be combined with the chromaticity-space segmenter, and which can also be adjusted using GUI components.
icl::qt::ChromaGUI::ChromaGUI | ( | QWidget * | parent = 0 | ) |
void icl::qt::ChromaGUI::blueSliderChanged | ( | int | val | ) | [slot] |
used for the blue-value visualization slider
retuns a CombiClassifier with current parameters
retuns a ChomaClassifier with current parameters
void icl::qt::ChromaGUI::load | ( | const std::string & | filename = "" | ) | [slot] |
used for the load-button
void icl::qt::ChromaGUI::save | ( | const std::string & | filename = "" | ) | [slot] |
used for the save-button
SliderHandle icl::qt::ChromaGUI::m_aoSliderHandles[2][3] [private] |
Handles to the embedded sliders.
ChromaWidget* icl::qt::ChromaGUI::m_poChromaWidget [private] |
Wrapped ChromaWidget (an internal class)