0

I am using ASUS Xtion Pro and OpenNI to program some gesture recognition.

FingertipDetector2D fingertipDetector2D = new FingertipDetector2D(
    new DepthImage(this.depthMetadata.XRes, 
        this.depthMetadata.YRes, 
        this.depthMetadata.DepthMapPtr),
    point3D, 
    (ushort)this.depthGenerator.DeviceMaxDepth);

I use the code above to read the data from the device but I getn an exception from ImageAnalyzer.dll. It says it's a devide by zero exception.

The device is okay since the sample files of OpenNI library work fine.

Does anyone know what the problem might be

Eugene Podskal
  • 10,270
  • 5
  • 31
  • 53
  • I think you should show more... where is openni initialized? maybe the error is there... – api55 Sep 27 '14 at 11:45
  • The initialization is okay, since the application runs okay until here, here is where the exception is thrown – Dren Selimi Sep 29 '14 at 11:43
  • The initialization can still be missing something, and runs fine, until this missing part is needed... The more you show the easier to find the error... Also, you should show where these constructors are implemented , maybe the error is there – api55 Sep 29 '14 at 12:06

0 Answers0