title: Getting the Y and Cb , Cr values of a frame in openCV c++
body: <p>I'm writing a code that uses openCV, here is my Question the frame in openCV is in RGB color space, but I need it in YCbCr format, so I used I wrote this small code :</p>
  
  <pre><code> void  PixelError::conversiontoYcbcr(cv::Mat rgbFrame){
      cv::cvtColor(rgbFrame,frameycbcr, CV_RGB2YCrCb,0);
      cv::Vec3f pixel = frameycbcr.at&lt;cv::Vec3f&gt;(row,col);
   } 
  </code></pre>
  
  <p>this was the example to get R and G adn B value but since I convert the frame I was hopping to get my values too, but I got an error in row and col and I don't know which channel of the vector pixel represents my Y or Cb or CR values. 
  thanks in advance for your help  </p>