浏览代码

Added getImageData().

Daniel Kauth 11 年之前
父节点
当前提交
cedd75a4e6
共有 2 个文件被更改,包括 6 次插入0 次删除
  1. 1 0
      bbiwarg/DataSource/IVideoDataSource.cs
  2. 5 0
      bbiwarg/DataSource/IisuDataSource.cs

+ 1 - 0
bbiwarg/DataSource/IVideoDataSource.cs

@@ -61,6 +61,7 @@ namespace bbiwarg.DataSource
         ColorImage getColorImage();
         ConfidenceImage getConfidenceImage();
         UVImage getUVImage();
+        ImageData getImageData();
         /*
          * all handIndices have to be 1 or 2
          */

+ 5 - 0
bbiwarg/DataSource/IisuDataSource.cs

@@ -193,6 +193,11 @@ namespace bbiwarg.DataSource
             return new UVImage(width, height, uvData);
         }
 
+        public ImageData getImageData()
+        {
+            return new ImageData(getDepthImage(), getConfidenceImage(), getColorImage(), getUVImage());
+        }
+
         private void checkHandIndex(uint handIndex) 
         {
             if (handIndex < 1 || handIndex > 2)