title: Train skin pixels using Opencv CvNormalBayesClassifier
body: <p>I'm very new to OpenCV. I am trying to use the CvNormalBayesClassifier to train my program to learn skin pixel colours. </p>
  
  <p>Currently I have got around 20 human pictures (face/other body parts) under different light conditions and backgrounds. I have also got 20 corresponding responses in which the skin parts are marked red and everything else marked green. </p>
  
  <p>I have problem understanding how to use the function</p>
  
  <pre><code>bool CvNormalBayesClassifier::train(const CvMat* _train_data, const CvMat* _response, const Cv*Mat _var_idx = 0, const CvMat* _sample_idx=0,, bool update=false);
  </code></pre>
  
  <p>How should I use the current two picture libraries I have got to prepare the values that can be passed in as _train_data and _responses?</p>
  
  <p>Many thanks.</p>