Browse Source

Added getWidth() and getHeight() to UVImage.

Daniel Kauth 11 years ago
parent
commit
8e4667de65
3 changed files with 10 additions and 39 deletions
  1. 10 0
      bbiwarg/DataSource/UVImage.cs
  2. 0 37
      bbiwarg/DataSource/VertexArray.cs
  3. 0 2
      bbiwarg/bbiwarg.csproj

+ 10 - 0
bbiwarg/DataSource/UVImage.cs

@@ -18,6 +18,16 @@ namespace bbiwarg.DataSource
             this.data = data;
         }
 
+        public int getWidth()
+        {
+            return width;
+        }
+
+        public int getHeight()
+        {
+            return height;
+        }
+
         public float getU(int x, int y)
         {
             return data[2 * (y * width + x) + 0];

+ 0 - 37
bbiwarg/DataSource/VertexArray.cs

@@ -1,37 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-using MathNet.Numerics.LinearAlgebra.Single;
-
-namespace bbiwarg.DataSource
-{
-    class VertexArray
-    {
-        private Vector[] positions;
-        private Color4[] colors;
-
-        public VertexArray(Vector[] positions, Color4[] colors)
-        {
-            this.positions = positions;
-            this.colors = colors;
-        }
-
-        public int getNumVertices()
-        {
-            return positions.Length;
-        }
-
-        public Vector getPosition(int index)
-        {
-            return positions[index];
-        }
-
-        public Color4 getColor(int index)
-        {
-            return colors[index];
-        }
-    }
-}

+ 0 - 2
bbiwarg/bbiwarg.csproj

@@ -58,13 +58,11 @@
   <ItemGroup>
     <Compile Include="DataSource\ImageData.cs" />
     <Compile Include="DataSource\UVImage.cs" />
-    <Compile Include="DataSource\Color4.cs" />
     <Compile Include="DataSource\ColorImage.cs" />
     <Compile Include="DataSource\ConfidenceImage.cs" />
     <Compile Include="DataSource\DepthImage.cs" />
     <Compile Include="DataSource\IisuDataSource.cs" />
     <Compile Include="DataSource\IVideoDataSource.cs" />
-    <Compile Include="DataSource\VertexArray.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Test\OutputTest.cs" />
     <Compile Include="Test\Pixel3D.cs" />