Browse Source

Added getImageData().

Daniel Kauth 11 years ago
parent
commit
cedd75a4e6
2 changed files with 6 additions and 0 deletions
  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)