title: How can I get rgb value from point cloud
body: <p>I have a point-cloud. I want to get its RGB value. How can I do that?<br>
    To make my question clearer, please see the codes.</p>
  
  <pre><code>// Load the first input file into a PointCloud&lt;T&gt; with an appropriate type : 
          pcl::PointCloud&lt;pcl::PointXYZRGB&gt;::Ptr cloud1 (new pcl::PointCloud&lt;pcl::PointXYZRGB&gt;);
          if (pcl::io::loadPCDFile&lt;pcl::PointXYZRGB&gt; ("../data/station1.pcd", *cloud1) == -1)
          {
              std::cout &lt;&lt; "Error reading PCD file !!!" &lt;&lt; std::endl;
              exit(-1);
          }
  </code></pre>
  
  <p>I want to get each value alone </p>
  
  <pre><code>std::cout &lt;&lt; " x = " &lt;&lt; cloud1-&gt;points[11].x &lt;&lt; std::endl;
  std::cout &lt;&lt; " y = " &lt;&lt; cloud1-&gt;points[11].y &lt;&lt; std::endl;
  std::cout &lt;&lt; " z = " &lt;&lt; cloud1-&gt;points[11].z &lt;&lt; std::endl;
  std::cout &lt;&lt; " r = " &lt;&lt; cloud1-&gt;points[11].r &lt;&lt; std::endl;
  std::cout &lt;&lt; " g = " &lt;&lt; cloud1-&gt;points[11].g &lt;&lt; std::endl;
  std::cout &lt;&lt; " b = " &lt;&lt; cloud1-&gt;points[11].b &lt;&lt; std::endl;
  </code></pre>
  
  <p>But as a result I get something like that :</p>
  
  <pre><code> x = 2.33672
   y = 3.8102
   z = 8.86153
   r = �
   g = w
   b = �
  </code></pre>