Browse Source

removed IVideoHandle

Alexander Hendrich 10 years ago
parent
commit
89aa96e2d7

+ 2 - 2
bbiwarg/Detectors/ForeFingerDetection.cs

@@ -25,7 +25,7 @@ namespace bbiwarg.Detectors
         public const int TOLERANCE_2D = 3;
 
         private IInputProvider inputProvider;
-        private IVideoHandle videoHandle;
+        private VideoHandle videoHandle;
 
         private List<Vector> points;
         private HashSet<Vector> seenPoints;
@@ -37,7 +37,7 @@ namespace bbiwarg.Detectors
         private int pixelHeight;
 
 
-        public ForeFingerDetection(IInputProvider inputProvider, IVideoHandle videoHandle)
+        public ForeFingerDetection(IInputProvider inputProvider, VideoHandle videoHandle)
         {
             this.inputProvider = inputProvider;
             this.videoHandle = videoHandle;

+ 2 - 2
bbiwarg/Detectors/PalmDetection.cs

@@ -13,10 +13,10 @@ namespace bbiwarg.Detectors
     class PalmDetection
     {
         private IInputProvider input;
-        private IVideoHandle videoHandle;
+        private VideoHandle videoHandle;
         private ForeFingerDetection foreFingerDetection;
 
-        public PalmDetection(IInputProvider input, IVideoHandle videoHandle)
+        public PalmDetection(IInputProvider input, VideoHandle videoHandle)
         {
             this.input = input;
             this.videoHandle = videoHandle;

+ 2 - 2
bbiwarg/Graphics/Output2D.cs

@@ -18,10 +18,10 @@ namespace bbiwarg.Graphics
 {
     class Output2D: GameWindow
     {
-        private IVideoHandle videoHandle;
+        private VideoHandle videoHandle;
         private uint textureId;
 
-        public Output2D(IVideoHandle videoHandle): base(3 * 320, 3 * 240)
+        public Output2D(VideoHandle videoHandle): base(3 * 320, 3 * 240)
         {
             this.videoHandle = videoHandle;
         }

+ 2 - 2
bbiwarg/Graphics/Output3D.cs

@@ -18,11 +18,11 @@ namespace bbiwarg.Graphics
 {
     class Output3D : GameWindow
     {
-        private IVideoHandle videoHandle;
+        private VideoHandle videoHandle;
 
         private uint imageBufferId;
 
-        public Output3D(IVideoHandle videoHandle)
+        public Output3D(VideoHandle videoHandle)
         {
             this.videoHandle = videoHandle;
         }

+ 1 - 1
bbiwarg/Main/OutputTest.cs

@@ -14,7 +14,7 @@ namespace bbiwarg.Main
         static void Main(string[] args)
         {
             IInputProvider inputProvider = new IisuInputProvider("..\\..\\videos\\touch\\3.skv");
-            IVideoHandle videoHandle = new VideoHandle(inputProvider);
+            VideoHandle videoHandle = new VideoHandle(inputProvider);
 
             Output2D output = new Output2D(videoHandle);
             output.Run(30);

+ 0 - 39
bbiwarg/VideoHandle/IVideoHandle.cs

@@ -1,39 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using MathNet.Numerics.LinearAlgebra.Single;
-using bbiwarg.Detectors;
-using bbiwarg.InputProviders;
-using bbiwarg.Images;
-
-namespace bbiwarg.VideoHandles
-{
-    interface IVideoHandle
-    {
-        void nextFrame();
-
-        short getDepth(int x, int y);
-        short getConfidence(int x, int y);
-        Color getColor(int x, int y);
-
-        DepthImage getHandImage();
-
-        // TODO: implement properly
-        void createVertexArray(IntPtr vertexBuffer);
-        Vector pixel2VertexPosition(Vector pixelPosition);
-
-        DetectionStatus[] getFingerStatus(uint handIndex);
-        Vector[] getFingerTipPositions3D(uint handIndex);
-        Vector getPalmPosition3D(uint handIndex);
-        Vector getPalmNormal3D(uint handIndex);
-        Vector getForearmPosition3D(uint handIndex);
-        Vector getForeFingerPosition3D(uint handIndex);
-        List<Vector> getHandPoints();
-        Palm getPalm(uint handIndex);
-        int getWidth();
-        int getHeight();
-
-        int[] getSmoothedHistogram();
-        Int16[] getSegementationDepth();
-    }
-}

+ 1 - 1
bbiwarg/VideoHandle/VideoHandle.cs

@@ -12,7 +12,7 @@ using bbiwarg.Helpers;
 
 namespace bbiwarg.VideoHandles
 {
-    class VideoHandle : IVideoHandle
+    class VideoHandle
     {
         private IInputProvider inputProvider;
 

+ 0 - 1
bbiwarg/bbiwarg.csproj

@@ -76,7 +76,6 @@
     <Compile Include="Images\ConfidenceImage.cs" />
     <Compile Include="Images\DepthImage.cs" />
     <Compile Include="InputProvider\IisuInputProvider.cs" />
-    <Compile Include="VideoHandle\IVideoHandle.cs" />
     <Compile Include="Helpers\VectorExtender.cs" />
     <Compile Include="Helpers\VertexArray.cs" />
     <Compile Include="VideoHandle\VideoHandle.cs" />