I am trying to output xyz coordinate depth data over time. I would like to output these coordinates in real-time. Is this possible with this code? If so, how (exactly) can I implement this?
What I have tried so far (among many other things):
1. Open the nid_depth.mdl block
2. Double click the NID Depth block and change output to XYZ.
3. Check "Real World Coordinates"
4. Double click on the selector. Change the number of input dimensions to 3.
5. Insert a simulink/Sinks/To Workspace block instead of the scope.
6. Change the time from inf to 1.5.
7. Double click the wire between the NID Depth block and the To Workspace block. Name the wire using a name without spaces.
7. Hit run.
When I do this, the output is a 1x1x46 timeseries. This is not what I am looking for.
To do what I am asking, do I need the computer vision system toolbox (which I do not currently have)?
I have installed:
- Microsoft SDK 7.1
- Visual Studio C++ 2010 Express
- OpenNI Stable Build for Windows x86 v22.214.171.124 Redist Edition
- PrimeSense NITE Stable Build for Windows x86 v 126.96.36.199 Redist Edition
- PrimeSensor Module Stable Build x86 v 188.8.131.52
- Kinect for Windows SDK v1.5
However, when I open setup_kinectsdk.m in MATLAB and hit run, I get the following error:
C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Compile of 'sfun_nid.cpp' failed.
Error using mex (line 206)
Unable to complete successfully.