示例#1
0
 private void UpdateAllColors()
 {
     for (int i = 0; i < _pixel_point_ids.PixelData.Length; ++i)
     {
         System.Drawing.Point p = Core.IndexHelper.PixelFromArrayIndex(i, _pixel_point_ids.Size);
         //we currently use image coordinate system as reference
         // Note: 0 is used as not-set marker
         uint id = _pixel_point_ids.PixelData[i];
         if (id > 0)
         {
             double[] color = GetPixelColor(ref p);
             _pointcloud.UpdateColor(id - 1, color);
         }
     }
 }