Rank: 392171 based on 0 downloads (last 30 days) and 0 file submitted
photo

reinhardt

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by reinhardt
Updated File Comments Rating
10 Jul 2012 Kinect Matlab Microsoft Kinect, OpenNI wrapper, Skeleton, Depth Author: Dirk-Jan Kroon

It works in my win7, with newest unstable edition of openNI:

function compile_cpp_files(OpenNiPath)
% This function compile_cpp_files will compile the c++ code files
% which wraps OpenNI for the Kinect in Matlab.
%
% Please install first on your computer:
% - NITE-Bin-Win32-v1.3.0.18
% - OpenNI-Bin-Win32-v1.0.0.25
%
% Just execute by:
%
% compile_c_files
%
% or with specifying the OpenNI path
%
% compile_cpp_files('C:\Program Files (x86)\OpenNI\');
%
%openNI64.lib
if(nargin<1)
OpenNiPathInclude=getenv('OPEN_NI_INCLUDE');
% OpenNiPathLib=getenv('OPEN_NI_LIB');
OpenNiPathLib=getenv('OPEN_NI_LIB64');
if(isempty(OpenNiPathInclude)||isempty(OpenNiPathLib))
error('OpenNI path not found, Please call the function like compile_cpp_files(''examplepath\openNI'')');
end
else
% OpenNiPathLib=[OpenNiPath 'Lib'];
% OpenNiPathInclude=[OpenNiPath 'Include'];
OpenNiPathLib= fullfile(OpenNiPath, 'Lib64');
OpenNiPathInclude= fullfile(OpenNiPath, 'Include');
end

cd('Mex');
files=dir('*.cpp');
for i=1:length(files)
Filename=files(i).name;
clear(Filename);
% mex('-v',['-L' OpenNiPathLib],'-lOpenNI',['-I' OpenNiPathInclude],Filename);
mex('-v',['-L' OpenNiPathLib],'-lopenNI64',['-I' OpenNiPathInclude],Filename);
%mex('-v',['-L' OpenNiPathLib],'-lopenNI',['-I' OpenNiPathInclude],Filename);
end
cd('..');

Contact us