plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
happyharrycn/unsupervised_edges-master
edgesEvalImgFast.m
.m
unsupervised_edges-master/structured_edges/edgesEvalImgFast.m
4,994
utf_8
3470ed4119e98435cb12f7c47902934e
function [thrs,cntR,sumR,cntP,sumP,V] = edgesEvalImgFast( E, G, varargin ) % Calculate edge precision/recall results for single edge image. % % Enhanced replacement for evaluation_bdry_image() from BSDS500 code: % http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/ % Uses same format and is fully compat...
github
happyharrycn/unsupervised_edges-master
edgesEvalDir.m
.m
unsupervised_edges-master/structured_edges/edgesEvalDir.m
5,852
utf_8
b708b92045eaa75fa68d09e169447bb6
function varargout = edgesEvalDir( varargin ) % Calculate edge precision/recall results for directory of edge images. % % Enhanced replacement for boundaryBench() from BSDS500 code: % http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/ % Uses same format for results and is fully compatible with boundary...
github
happyharrycn/unsupervised_edges-master
edgesEvalDirFast.m
.m
unsupervised_edges-master/structured_edges/edgesEvalDirFast.m
5,998
utf_8
2705468968d13cfb5879826f8fc1a673
function varargout = edgesEvalDirFast( varargin ) % Calculate edge precision/recall results for directory of edge images. % % Enhanced replacement for boundaryBench() from BSDS500 code: % http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/ % Uses same format for results and is fully compatible with boun...
github
happyharrycn/unsupervised_edges-master
edgesTrain.m
.m
unsupervised_edges-master/structured_edges/edgesTrain.m
16,041
utf_8
3df2375071950b7d0bbce36c6111524e
function model = edgesTrain( trnImgDir, trnGtDir, varargin ) % Train structured edge detector. % % For an introductory tutorial please see edgesDemo.m. % % USAGE % opts = edgesTrain() % model = edgesTrain( trnImgDir, trnGtDir, opts ) % % INPUTS % trnImgDir - folder with all training images % trnGtDir - folder wi...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
rgb.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayerPro/rgb.m
7,732
utf_8
e3e60031f5dfe6aa0d1f477e521ca66d
% rgb.m: translates a colour from multiple formats into matlab colour format % type 'rgb demo' to get started % % [matlabcolor]=rgb(col) % matlab colors are in the format [R G B] % % if 'col' is a string, it is interpreted as % % [[modifier] descriptor] colour_name % % where % modifier is one of (slightl...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
newMPPObject.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayerPro/newMPPObject.m
601
utf_8
42d488d286b1fadfe14e55d2aea0209a
% -- % creates a template for MotionplayerPro Objects % fields required: % - type (currently possible values: 'dot', 'cross', 'tetra' % - data: matrix of size (3*nrOfObj x nrOfFrames) % - samplingRate % optional fields: (for default values see DEFAULTSCENE) % - color % - alpha % - size % % author: Jochen Ta...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
MPP_GUI.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayerPro/MPP_GUI.m
3,405
utf_8
aedd8a008aa2e4af018cdaa12503396a
function fig = MPP_GUI(varargin) global SCENE; % figure and camera settings ---------------------------------------------- fig = figure('Visible','on',... 'Name','MotionPlayerPro',... 'NumberTitle','off',... 'Position',[SCENE.position,SCENE.size],... 'Resize', 'on', ... 'Color', [0 0 0 ], ...%[.9...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
motionplayerProGUI.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayerPro/motionplayerProGUI.m
29,219
utf_8
ae6f6ca6e5c3b23a95a5b71b80b6d6be
function fig = motionplayerProGUI(varargin) global SCENE; % help -------------------------------------------------------------------- helpDlg = {'Key-Bindings:',... '------------------------------------------------------',... '<space>:',' play/pause',... '<leftarrow>:',' move motion back 10 fr...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
computeVertices.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayerPro/computeVertices.m
10,374
utf_8
62c10be8f0070b96e360ea9b9d7f6212
function mot = computeVertices(skel,mot,scale_factor,bonestype) if isfield(mot,'rotationQuat') if ~iscell(mot.rotationQuat) if ~isempty(mot.rotationQuat) rotQuats = mat2cell(mot.rotationQuat,4*ones(1,numel(mot.animated))); mot.rotationQuat = cell(mot.njoints,1); m...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
MPP_start.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayerPro/MPP_start.m
20,566
utf_8
a09f5cc60a6440b124c3867424b8d4c7
function MPP_start() global SCENE; % help -------------------------------------------------------------------- helpDlg = {'Key-Bindings:',... '------------------------------------------------------',... '<space>:',' play/pause',... '<leftarrow>:',' move motion back 10 frames',... '<downarr...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
buildDB.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/parser/buildDB.m
19,707
utf_8
f19c88acf9d2fa4fee5ab29432f55770
function res = buildDB(varargin) % optional settings ------------------------------------------------------- origFrameRate = 119.88; minFrameNumber = 30;%origFrameRate; % ensure that no motions shorter than minFrameNumber frames are chosen % HINWEIS: ohne "Orig" sind das die Daten nach "fitRootOrientationsFr...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
emptyMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/parser/emptyMotion.m
6,695
utf_8
8b76a6adb6c20591b900c33d82bc4bd4
function mot = emptyMotion(varargin) switch nargin case 0 mot = struct('njoints',0,... % number of joints 'nframes',0,... % number of frames 'frameTime',nan,... % inverse sampling rate...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
amc_to_matrix.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/parser/ASFAMCparser/amc_to_matrix.m
2,671
utf_8
32da4a50441d0da713b0bb6ea3349c22
% Reads data from an AMC motion file into a Matlab matrix variable. % AMC file has to be in the AMC format used in the online CMU motion capture library. % number of dimensions = number of columns = 62 % function D = amc_to_matrix(fname) % fname = name of disk input file, in AMC format % Example: % D = amc_to_ma...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
matrix_to_amc.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/parser/ASFAMCparser/matrix_to_amc.m
2,225
utf_8
3d0a06d61f8d69c60c6e78641144ea64
% Writes motion data from matrix D to an AMC file on disk. % The ACM format is the format used in the CMU online motion capture database % function [] = matrix_to_amc(fname, D) % fname = output disk file name for AMC file % D = input Matlab data matrix % Example: % matrix_to_amc('running1.amc', D) % % % Jern...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
filterR4.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/quaternions/filterR4.m
2,217
utf_8
c795e21bddf40ecb117cc6e70f7f575c
function [Y,t] = filterR4(varargin) % Y = filterR4(w,X,step,padding_method) % Filters curves embedded in the unit quaternion sphere with a sliding window. % Simply views quats as 4D data without additional structure and renormalizes % to S^3 after filtering % % Input: w, weight vector % X, 4xN matri...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
isColor.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayer/isColor.m
295
utf_8
e20f1469401335aa9acac9aed8ad5f54
%% validator for color % returns true if x is a 1x3 matrix of doubles between 0.0 and 1.0 function val = isColor(x) if(... min(min(x)) >= 0.0 && ... max(max(x)) <= 1.0 && ... size(x,1) == 1 && ... size(x,2) == 3) val = 1; else val = 0; end end
github
umariqb/3D_Pose_Estimation_CVPR2016-master
removeDupVerts.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayer/removeDupVerts.m
788
utf_8
8a886ae550cf2eca76d4d94c848de739
% remove duplicate vertices and replace indices in patch with new % vertex indices function [vertsOut,patchesOut] = removeDupVerts(vertsIn, patchesIn) patchesOut = patchesIn'; index = [1:size(vertsIn,1);zeros(1,size(vertsIn,1))]'; for i = 1:size(vertsIn,1) for j = 1:size(vertsIn,1) if(~index(j,2)) ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
isMot.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayer/isMot.m
1,399
utf_8
eea71926a8ea8e1bbe6cb280b10db8e5
function out = isMot(mot) % returns true if given argument is a motion-type structure % this function tests if mot is of type struct and contains the % following fields % fieldsRequired = {... % 'njoints', 'nframes', 'frameTime', 'samplingRate'... % 'jointTrajectories', 'rootTran...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
plotMultiLayerResult2Fig_forVideo.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionplayer/video/plotMultiLayerResult2Fig_forVideo.m
7,956
utf_8
ee68b584f34ba9d1d719815af8bd9f60
function plotMultiLayerResult2Fig_forVideo(annotation,hits4File, parameter) if nargin < 3 parameter = struct; end if isfield(parameter, 'printFigure') == 0 parameter.printFigure = 0; end if isfield(parameter, 'filenamePrefix') == 0 parameter.filenamePrefix = 'figures/tensorClassification_'; end if isfield...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
reverseMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/reverseMotion.m
379
utf_8
645f63d913001e86ef960cb567c449c1
% function reverseMotion % author: Jochen Tautges (tautges@cs.uni-bonn.de) function mot = reverseMotion(skel,mot) mot.rotationQuat = cellfun(@(x) fliplr(x),mot.rotationQuat,'UniformOutput',0); mot.filename = [mot.filename '.reversed']; mot.rootTranslation = fliplr(mot.rootTranslation); m...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
fitMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/fitMotion.m
1,137
utf_8
6699036712fc3b7a111e64eebc7a4d0b
% FUNCTION fitMotion applays a translation and a rotation around y-axis to % a given motion. The motion is moved with root position to the origin with % the first frame. And rotated that the main direction goes along the % x-Axis. % INPUT: % skel: struct: skeleton definition for the motion % mot: struct:...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
translateMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/translateMotion.m
953
utf_8
e96682ed915c35d67d8dec51f6cf98c1
% function translateMotion % translates a motion with specified translation % mot = translateMotion(skel,mot,x,y,z) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function mot = translateMotion(skel,mot,x,y,z,varargin) computetrajsbb=true; if (nargin == 6) computetrajsbb=varargin{1}; end mot.rootTr...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
removeSkating.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/removeSkating.m
999
utf_8
4a6011f9d697887866ed98d58c66ecea
% function removeSkating % performs simple (naive) clean up of skating effects % mot = removeSkating(skel,mot) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function mot = removeSkating(skel,mot) leftJoint = 4; rightJoint = 7; badTranslation=0; for i=2:mot.nframes if mot.jointTrajectories{lef...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
removeOrientation.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/removeOrientation.m
744
utf_8
60ebeb2fc2ab79ed3130e0cd080802c0
% function removeOrientation % removes the global orientation (root orientation) of a motion % mot = removeOrientation(skel,mot) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function mot = removeOrientation(skel,mot) if ~(isempty(mot.rotationQuat)) mot.rotationQuat{1}=[ones(1,mot.nframes);zeros(3,mot...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
addVelToMot.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/addVelToMot.m
1,798
utf_8
8972ec6857f06618cd7591854f8fd178
% function mot = addVelToMot(mot) % computes joint velocities in each frame and adds the field % 'jointVelocities' to mot structure % additionally filters the computed velocities with binomial filter % author: Jochen Tautges (tautges@cs.uni-bonn.de) function mot = addVelToMot(mot,varargin) if nargin==2 f...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
rotateMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/rotateMotion.m
1,232
utf_8
d412c25a6076da06f2bf3ca4ee7d6ab7
% function rotateMotion % rotates a motion with specified angle (in radians) around specified axis % mot = rotateMotion(skel,mot,angle,axis,varargin) % if varargin = false, jointTrajectories and boundingBox won't be computed % author: Jochen Tautges (tautges@cs.uni-bonn.de) function [mot,Q] = rotateMotion(skel,m...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
addBonesToMot.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/addBonesToMot.m
6,776
utf_8
31dba400ca97caa43ee8cd68534b3bb7
% mot = addBonesToMot(mot); % adds field "bones" to struct "mot" with the following columns: % - name: name of the bone (cf. struct "skel") % - bone vectors: father to son oriented vector for each frame % - bone length: length of the bone (cf. struct "skel") % - normalized bone vectors % - father and son joints r...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
C_rotateMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/C_rotateMotion.m
1,344
utf_8
84fd698ee9ee92ec250403e41ed0aa23
% function C_rotateMotion % rotates a motion with specified angle (in radians) around specified axis % mot = rotateMotion(skel,mot,angle,axis,varargin) % if varargin = false, jointTrajectories and boundingBox won't be computed % author: Jochen Tautges (tautges@cs.uni-bonn.de), % some modifications by Tim Golla (t...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
removeTranslation.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/removeTranslation.m
1,318
utf_8
be462a31fcc4d7cdadf1d40f9c721fd6
% function removeTranslation % removes the global translation (root translation) of a motion % mot = removeTranslation([skel,]mot) % if skel is specified function uses forward kinematics, otherwise simple % subtraction of root positions from all joint positions % author: Jochen Tautges (tautges@cs.uni-bonn.de) ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
addAccToMot.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/motionTools/addAccToMot.m
1,726
utf_8
ae87460bf938a441c2cf7fd2ec602fd1
% function mot = addAccToMot(mot) % computes joint accelerations in each frame and adds the field % 'jointAccelerations' to mot structure % additionally filters the computed accelerations with binomial filter % author: Jochen Tautges (tautges@cs.uni-bonn.de) function mot = addAccToMot(mot,varargin) if nargin=...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
myaa.m
.m
3D_Pose_Estimation_CVPR2016-master/tools/plotTools/myaa.m
11,141
utf_8
a66dd7fc188c3f6a1a0a0c07623cf831
function [varargout] = myaa(varargin) %MYAA Render figure with anti-aliasing. % MYAA % Anti-aliased rendering of the current figure. This makes graphics look % a lot better than in a standard matlab figure, which is useful for % publishing results on the web or to better see the fine details in a % complex...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
H_writeImageTest2.m
.m
3D_Pose_Estimation_CVPR2016-master/code/H_writeImageTest2.m
1,356
utf_8
900cb28147fd72b40923c1c56db8fdf0
function H_writeImageTest2(opts,inp2d,est2dRt,vFile,f,bodyType) ifr = opts.sFrame + f - 1; if(isobject(vFile)) rgbIm = read(vFile,ifr); else imn = [vFile opts.subject '_' opts.action '_' num2str(opts.frameNo(1,f)) '_' num2str(opts.frameNo(2,f)) '.png']; rgbIm = imread(imn); end clf imshow(rgbIm...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
H_text2MotFile.m
.m
3D_Pose_Estimation_CVPR2016-master/code/H_text2MotFile.m
3,893
utf_8
0d21eef1f64aae54f67fb40229623cc7
function H_text2MotFile(dataName, strPath,dimInfo) motIn = emptyMotionLocal; strName = [strPath dataName]; fid = fopen(strName); cSpace = char('\n'); txtData = fscanf(fid, ['%f', cSpace]); token = textscan(dataName, '%s', 'delimiter', '_'); motIn.njoints = 14; frmInfo = 2; ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
optimCamMtxPerspSepWinH30Mbm.m
.m
3D_Pose_Estimation_CVPR2016-master/code/optimCamMtxPerspSepWinH30Mbm.m
5,937
utf_8
71e484e9935760067294b595c9b74540
function [est2dRt, est3dRt, X] = optimCamMtxPerspSepWinH30Mbm(inp2d,knn3d,cm,opts, singleDim, varargin) if(nargin > 5) vFile = varargin{1}; end if (exist('vFile','var')) if(~isobject(vFile)) vFilePath = vFile; end testIm = 1; dirFiles = dir([vFile '*.png']); drnm ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
optimCamMtxPerspSepWin.m
.m
3D_Pose_Estimation_CVPR2016-master/code/optimCamMtxPerspSepWin.m
6,857
utf_8
9f8e6572075ba03fd71b8a7a17dcc258
function [est2dRt, est3dRt, X] = optimCamMtxPerspSepWin(inp2d,knn3d,cm,opts,varargin) %% Hashim Yasin strtOp = 1; windowsize = 4; % for 5 we have to select 4 if(nargin > 4) vFile = varargin{1}; end if (exist('vFile','var')) testIm = 1; else testIm = 0; end optimOpts = optimset(... ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
errorHumanEva.m
.m
3D_Pose_Estimation_CVPR2016-master/code/errorHumanEva.m
3,107
utf_8
274fbb095679590e793911c138288956
function [errPrJnts, errPrFr, errPrAllFr] = errorHumanEva(data,mocapGT,cJoints) % data = data(1:3*length(cJoints),:); % mocapGT = mocapGT(1:3*length(cJoints),:); errPrFr = nan(size(data,2),1); % error nrOfFrames errPrJnts = nan(size(data,1)/3,1,size(data,2)); % error joints*knn*nrOfFrames ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
emptyMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/code/emptyMotion.m
6,889
utf_8
6ecb50721bd9279da049272df1df4952
function mot = emptyMotion(varargin) switch nargin case 0 mot = struct('njoints',0,... % number of joints 'nframes',0,... % number of frames 'frameTime',nan,... % inverse sampling ra...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
recOnWeightedKernel.m
.m
3D_Pose_Estimation_CVPR2016-master/code/recOnWeightedKernel.m
12,345
utf_8
e93849a49bae2f70b66d852857515f10
function [er, optim, opts] = recOnWeightedKernel(varargin) tic %% options updates close all; if(nargin == 0) [opts, ~] = initializeOpts; elseif(nargin == 1) [opts, ~] = initializeOpts(varargin{1}); elseif(nargin == 2) [opts, ~] = initializeOpts(varargin{1},varargin{2}); elseif(nargin == 3) [o...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
recOnWeightedKernelH36Mbm.m
.m
3D_Pose_Estimation_CVPR2016-master/code/recOnWeightedKernelH36Mbm.m
12,075
utf_8
ffb099efa7b685200da7d38736999ad3
function [er, optim, opts, motrecOpt] = recOnWeightedKernelH36Mbm(opts) %% options updates close all; % opts_bak = opts; % if(nargin == 0) % [opts, skel] = initializeOpts; % elseif(nargin == 1) % [opts, skel] = initializeOpts(varargin{1}); % elseif(nargin == 2) % [opts, skel] = initializeOpts(varar...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
recMotNG.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/ChaiHodgins/recMotNG.m
7,550
utf_8
5c5a145cfee329a3ba212b265ee261a1
function res = recMotNG(skel,mot,priorKnowledge) % setting variables ---------------------------------------------- dataRep = 'euler'; % quat is bad for prior controlJoints = [4,9,17,18,20,25,27]; % joints for simulated control signal selectedJoints = [4,9,19,20,26,27];%[3,4,8,9,12:17,19,...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
sortByQueryMetric.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/ChaiHodgins/sortByQueryMetric.m
872
utf_8
9ff925af44a4bbf7078f3e093ca8e830
% Input: % - rotData: rotation data of all candidates (for Euler angles of size 59 x #candidates) % - posData: position data of selected joints of all candidates % - qlast: rotation data of last synthesized pose % - qlastlast: rotation data of second last synthesized pose % - controlSig...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
recMotNG_new.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/ChaiHodgins/recMotNG_new.m
8,130
utf_8
3e337954f724eaeb097671cfcfcbaf66
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % function recMotNG (REConstruct MOTion using Neighbour Graph) % % res = recMotNG(skel,mot,data) % % input: % - skel: skeleton struct % - mot: mot struct % - data: struct containing fields 'nGraph', 'quat' and 'pos', % obtaine...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
readKinectData.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/kinectRecordings/readKinectData.m
2,220
utf_8
0d752a6e31d824a416f68c48b6eae6b6
function [skels,mots] = readKinectData(file) rawdata = importdata(file); if ~isempty(rawdata) timestamps = rawdata(:,1); skelids = rawdata(:,2); skeldata = rawdata(:,3:end); diffskelids = unique(skelids); numskels = numel(diffskelids); mots = cell(numskel...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
buildTensorActRepStyle.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/buildTensorActRepStyle.m
7,136
utf_8
d6e3ee0b48a4b327d2d03755869165c9
function [Tensor]=buildTensorActRepStyle(p,varargin) % Creates a motion tensor from a given Directories of our % MocapDB. Each directory corresponds to one style. % All motions in a given directories are warped and put into the tensor. % The reference motion is allways the first motion in the first dir. % author: ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
findCoefficientsColumn.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/findCoefficientsColumn.m
3,362
utf_8
a033daf8edd44b1c910f685662a2d570
% FUNCTION findCoefficients searches for optimal coefficients to % reconstruct a given motion out of a given tensor. It uses the Matlab % Optimization Toolbox. % INPUT: % Tensor: struct: containing data, core, matrices. % newMot: struct: the motion that should be reconstructed. % varargin{1...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
modeNproduct.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/modeNproduct.m
868
utf_8
16282f02ba80f7e0494e84e44239a479
% modeNproduct % computes the mode-n-product T x_n M % i.e. T x_n M replaces every mode-n-vector v of T by the product Mv % example: result = modeNproduct(tensor,matrix,3); % with tensor (n1 x n2 x n3 x ... x n) and matrix (m x n3) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function resu...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
findCoefficients.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/findCoefficients.m
3,421
utf_8
7854c4bfa177d799469f1223ef221752
% FUNCTION findCoefficients searches for optimal coefficients to % reconstruct a given motion out of a given tensor. It uses the Matlab % Optimization Toolbox. % INPUT: % Tensor: struct: containing data, core, matrices. % newMot: struct: the motion that should be reconstructed. % varargin{1...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
findCoefficientsBruteForce.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/findCoefficientsBruteForce.m
5,270
utf_8
b1834d9e2999fbb6b2eb8182380f1cfb
% FUNCTION findCoefficients searches for optimal coefficients to % reconstruct a given motion out of a given tensor. It uses the Matlab % Optimization Toolbox. % INPUT: % Tensor: struct: containing data, core, matrices. % newMot: struct: the motion that should be reconstructed. % varargin{1...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
findCoefficientsColumnRoot.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/findCoefficientsColumnRoot.m
3,148
utf_8
911d39058f655f579d6f39d1d8de486e
% FUNCTION findCoefficients searches for optimal coefficients to % reconstruct a given motion out of a given tensor. It uses the Matlab % Optimization Toolbox. % INPUT: % Tensor: struct: containing data, core, matrices. % newMot: struct: the motion that should be reconstructed. % varargin{1...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
reconstructMotionCut.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/reconstructMotionCut.m
3,317
utf_8
6be9dfe9d14bb5f985dc1e5f70d1332a
function resultX=reconstructMotionCut(skel,mot,tensors) mot=changeFrameRate(skel,mot,30); info=filename2info(mot.filename); styles{1}=info.motionCategory; % styles{2}=info.motionCategory; TensorID=findTensorForStyles(styles,tensors); % for subClassInd=1:tensors{TensorID}.dimNaturalModes(1) tensors{TensorID...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
buildTensorFromDir.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/buildTensorFromDir.m
3,528
utf_8
904870213c131d96a7c4f53dffa8f61e
function [Tensor]=buildTensorFromDir(p) % Creates a motion tensor from a given Directory of our MocapDB % All motions in a given directory are warped and put into the tensor. % The reference motion is allways the first motion in dir. % author: Bjoern Krueger (kruegerb@cs.uni-bonn.de) %% Check if Backslash is...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
buildTensorFromDir2.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/buildTensorFromDir2.m
5,307
utf_8
9e9cd9ad5ec40658a7c6a9c508f9cc8c
function [Tensor]=buildTensorFromDir2(p,varargin) % Creates a motion tensor from a given Directory of our MocapDB % All motions in a given directory are warped and put into the tensor. % The reference motion is allways the first motion in dir. % author: Bjoern Krueger (kruegerb@cs.uni-bonn.de) %% Check i...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
reconstructMotionT.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/reconstructMotionT.m
1,907
utf_8
9b107df5e11c2c5d4f447ca3b818680a
% function reconstructMotion % reconstructs/approximates an original motion from a given core tensor of % arbitrary order and related matrices (obtained by HOSVD) % recMotion = reconstructMotion(core,factors,rows,varargin) % % example: reconstructMotion(Tensor,[2,2,1]) for 3 natural modes % % Remark: Use the tu...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
reconstructMotion6D.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/reconstructMotion6D.m
1,499
utf_8
802c28399e1376e0256b07775247fcf8
% function reconstructMotion % reconstructs/approximates an original motion from a given core tensor of % arbitrary order and related matrices (obtained by HOSVD) % recMotion = reconstructMotion(core,factors,rows,varargin) % % example: reconstructMotion(Tensor,[2,2,1]) for 3 natural modes % % Remark: Use the tu...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
compareMotions.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/compareMotions.m
9,628
utf_8
2f1c2b1282b0d03b31ea9c4922351fbd
% FUNCTION compareMotions compares to given motions. It returns a matrix of % distances for joints(rows) and frames(columns). % INPUT: % mot: struct: motion % mot1: struct: motion that shold be compared to mot % varargin{1}: string: Defines which distance measurement should % ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
findCoefficients6D.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/findCoefficients6D.m
3,799
utf_8
d1304249fe489a02f37a81ff7f9de89b
% FUNCTION findCoefficients searches for optimal coefficients to % reconstruct a given motion out of a given tensor. It uses the Matlab % Optimization Toolbox. % INPUT: % Tensor: struct: containing data, core, matrices. % newMot: struct: the motion that should be reconstructed. % varargin{1...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
findCoefficientsModeSA.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/MMM/findCoefficientsModeSA.m
1,499
utf_8
d2e2bcde84272837a3364e6539d0ab3c
function [X]=findCoefficientsModeSA(Tensor,newMot) % Prepare Data for optimization: % Align first new Motion like all others! [skel,fitmot]=reconstructMotionT(Tensor,[1 1 1]); skel = readASF(Tensor.skeletons{1,1}); newMot=fitMotion(skel,newMot); % Timewarp motion [newMot]=SimpleDTW(fi...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
buildPCAMatrixFromDir.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/PCA/buildPCAMatrixFromDir.m
4,770
utf_8
297a15d203d30c5ca76eba4a932f4f77
function [Matrix] = buildPCAMatrixFromDir(p,varargin) switch nargin case 1 maxRep =3; dataRep='Quat'; Styles ={'walk4StepsRstart', ... 'walkLeftCircle4StepsRstart', ... 'walkRightCircle4StepsRstart'}; case 2 maxRep =varargin{1}; dataRep=...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
precision_recall_diagram2.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/analytics/Retrieval/precision_recall_diagram2.m
4,877
utf_8
0707860911207e2bde51c2b2b4f364d4
function [ output_args ] = precision_recall_diagram2( DB_info, mClasses, results1, results2, recompute, m, n, tau1, tau2 ) dbs = dbstack; fullPath = dbs(1).name(1:max(strfind(dbs(1).name, '\'))); saveFileName = 'precision_recall_diagram_cache'; if ~iscell(mClasses) motionClasses{1} = mClasses; else motionCla...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
HitsYesNoDifferencePano.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/analytics/Retrieval/HitsYesNoDifferencePano.m
4,141
utf_8
b08d69ae3c4bc0effd091b0beb5e558c
function HitsYesNoDifferencePano( DB1, DB2, recompute, tau ) % HitsYesNoDifferencePano( DB1, DB2, recompute, tau ) global VARS_GLOBAL saveFileName = 'hitsYesNoDifference_cache'; if nargin < 2 DB1 = 'HDM05_cut_c3d_dipl'; DB2 = 'HDM05_cut_amc_dipl'; end if nargin < 3 recompute = false; end if nargin < ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
compareJoint.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/analytics/3DTraj/compareJoint.m
2,254
utf_8
63044f3afb107cbf239a154b0b9d5ef4
function compareJoint( skel1, mot1, skel2, mot2, jointName ) % compareJoint( skel1, mot1, skel2, mot2, jointName ) % % creates a clickable figure showing the l2-distance of the joint % given by "jointName". if nargin < 5 help compareJoint return end if length(mot1.jointTrajectories{1}) ~= length(m...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
matrix_comparison_similarity.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/analytics/FM_MT/matrix_comparison_similarity.m
2,704
utf_8
24f1aa0b2da611ae524fe0e4e05b3b15
function similarity = matrix_comparison_similarity( compFunction, aggrFunction, showDetailsCategory, recomputeMatrix ) % matrix = matrix_comparison_similarity( compFunction, aggrFunction, showDetailsCategory, constBoneLengths, recomputeMatrix ) % % Shoes similarity of motion classes referring to the give...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
matrix_comparison_showFeature.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/analytics/FM_MT/matrix_comparison_showFeature.m
3,408
utf_8
f4f93990c3e2efac29ba05d8100f7575
function matrix = matrix_comparison_showFeature( src, eventdata, compFunction, diffPerFeature, featureNames, motionClasses, dbName1, dbName2, constBoneLengths, CLIM ) pointClicked = get(get(src, 'Parent'), 'CurrentPoint'); x = round(pointClicked(1,1)); y = round(pointClicked(1,2)); % cmap = hot; % cmap(1,:) =...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
matrix_comparison.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/analytics/FM_MT/matrix_comparison.m
5,576
utf_8
8921b05996863ad882e7c58a6260dab9
function [matrix, diffPerFeature] = matrix_comparison( compFunction, aggrFunction, thresh, showDetailsCategory, recomputeMatrix, fontSize ) % [matrix, diffPerFeature] = matrix_comparison( compFunction, aggrFunction, thresh, showDetailsCategory, recomputeMatrix, fontSize ) % % compFunction: 'adv' ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
matrix_comparison_showCategory.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/analytics/FM_MT/matrix_comparison_showCategory.m
3,289
utf_8
77817382a114de20eea286d077a390ad
function [ output_args ] = matrix_comparison_showCategory( src, eventdata, compFunction, diffPerFeature, featureNames, motionClasses, dbName1, dbName2, CLIM ) pointClicked = get(get(src, 'Parent'), 'CurrentPoint'); x = round(pointClicked(1,1)); y = round(pointClicked(1,2)); if x <= length(motionClasses) m...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
new_motionTemplateGenerateReal_realInputWeighted.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/motion_templates/new_motionTemplateGenerateReal_realInputWeighted.m
7,916
utf_8
a136948ee28935380adc7ee969f800ac
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Generation of motion template %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [Utemplate,UtemplateWeights,Vcost] = new_motionTemplateGenerateReal_realInputWeighted(U,Uweights,parameter) % funct...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
new_motionTemplateDTWReal_realInputWeighted.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/motion_templates/new_motionTemplateDTWReal_realInputWeighted.m
5,156
utf_8
9d7cbd47ace8c08991cdf6d226654402
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Cost of features % by Meinard Mueller, 03.06.2005 % % V n times p matrix, data stream of length n with p dimensional feature vectors % W m times p matrix, data stream of length n with p dimensional feature vectors % mat...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
motionTemplateDTWRetrievalWeighted.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/motion_templates/motionTemplateDTWRetrievalWeighted.m
6,504
utf_8
220ef1c3e5d7c102dce1db2c81257ac5
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Motion Retrieval via substring DTW based on motion templates % by Meinard Mueller, 10.11.2005 % % V n times p matrix, data stream of length n with p dimensional feature vectors % W m times p matrix, data stream of length ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
MT_DisplayRealtimeData.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/XSensMatlab/MT_DisplayRealtimeData.m
22,793
utf_8
a722757e17506c523bd2757224064a50
function MT_DisplayRealtimeData(varargin) %% MT_DisplayRealtimeData(varargin); % % Real-time display of calibrated data or 3D orientation data from an MTi % or MTx % % varargin: Input arguments % 1. COM-port [integer] to which MT is connected (default = 1 , i.e. COM1) % 2. Display mode [string], choose to vie...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
XM_DisplayRealtimeData.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/XSensMatlab/XM_DisplayRealtimeData.m
24,551
utf_8
dd8819c5bd670a9720d47dff072c9c2d
function XM_DisplayRealtimeData(varargin) %% XM_DisplayRealtimeData(varargin); % % Real-time display of calibrated data or 3D orientation data from an MTi % or MTx % % varargin: Input arguments % 1. COM-port [integer] to which Xbus Master is connected (default = 1 , i.e. COM1) % 2. Display mode [string], choo...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
buildTensorStyleActRep.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/buildTensorStyleActRep.m
6,442
utf_8
ee9af2e2baeb0930757e0db140fa496b
function [Tensor,mots,skels]=buildTensorStyleActRep(p,varargin) % T=buildTensorStyleActRep(dir,[maxRep[,dataRep[,Styles]]]); % example: % T=buildTensorStyleActRep('R:\HDM05\HDM05_cut_amc',3); switch nargin case 1 maxRep =3; dataRep='Quat'; Styles ={'walk4StepsRstart', ... ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
compareAngles.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/compareAngles.m
1,720
utf_8
af58585e18a5b41ed729fc6a30ae9b47
function [res] = compareAngles(mot1,mot2,varargin) mot1=addBonesToMot(mot1); mot2=addBonesToMot(mot2); endEffectors = [6,11,17,23,24,30,31]; regardedJoints = setxor((1:31),endEffectors); weights = ones(1,length(regardedJoints)); switch nargin case 2 case 3 if ~isempty(intersect(...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
diff5point2.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/diff5point2.m
2,637
utf_8
d17ccf79ec510a81dd4d2db6d2064f3a
% function newStream = diff5point(stream,samplingRate,varargin) % 5-point derivation % author: Jochen Tautges (tautges@cs.uni-bonn.de) function newStream = diff5point2(stream,samplingRate,varargin) % defaults options.padding = true; options.derivative = 1; options.side = 'center'; nrOfFram...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
buildTensor.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/buildTensor.m
20,295
utf_8
dcc2bdb7af8b33478e4603d910c363b5
% function buildTensor % builds a motion tensor with specified form and order of modes % % Use upper cases for Technical Modes, lower cases for Natural Modes! % Valid characters for Technical Modes: % I: (Q)uaternions / (E)uler angles / Exponential (M)aps / (P)ositions / % (V)elocities / (A)ccelerations; (...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
pointCloudDTW.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/pointCloudDTW.m
3,102
utf_8
83f6115f6c0f4180cbd4fdd61dcf3716
% function [D,w,d]=pointCloudDTW(motRef,motToWarp[,traj,joints,rho]) % % Output: % D = GDM (Global Distance Matrix) % w = warping path % d = LDM (Local Distance Matrix) % % Required Input: % motref: reference motion % motToWarp: motion which is to warp % % Optional input: % traj: 'jointTraj...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
resampleMot2.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/resampleMot2.m
3,220
utf_8
d8f75da0022de6825c0010d62c4eec37
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % function resampleMot2 % for doc see "resampleMot" % resampleMot2 uses arbitrary interpolation method instead of linear interpolation % Note: resampleMot is faster, but resampleMot2 is nicer! % % author: Jochen Tautges (tautges@cs.uni-bo...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
addDOFIDsToSkel.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/addDOFIDsToSkel.m
646
utf_8
11e095a26ec25bb14198480b779910f8
% function addDOFIDsToSkel % adds struct "DOFIDs" to each node of denoted skel with indices % identifying its respective (rotational) dofs (->efficiency) % x -> 1, y -> 2, z -> 3 % example: % skel = addDOFIDsToSkel(skel) % author: Jochen Tautges, tautges@cs.uni-bonn.de function skel = addDOFIDsToSkel(skel) ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
reconstructMotionFromWiiData.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/reconstructMotionFromWiiData.m
4,757
utf_8
bd78c7bd53046a5480a073842545f393
function res = reconstructMotionFromWiiData(Tensor,skel,wii_output,motOrig) joint = input('Choose jointID for wii output: '); % wii_output = wii_output(:,9:11)'; % wii_output(3,:) = -9.81 * wii_output(3,:); % wii_output = wii_output(:,1:3)'; % wii_output(3,:) = -wii_output(3,:); X0 = cell(1,Tensor.numNatu...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
translateMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/translateMotion.m
698
utf_8
33e6539750837edc3271f125a42f6ec7
% function translateMotion % translates a motion with specified translation % mot = translateMotion(skel,mot,x,y,z) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function mot = translateMotion(skel,mot,x,y,z) mot.rootTranslation = mot.rootTranslation+repmat([x;y;z],1,mot.nframes); mot.jointTrajector...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
mirrorMot.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/mirrorMot.m
1,554
utf_8
31552f5474f3dde982ed755a26923111
% function mirrorMot % mirrors specified skeleton and motion on the yz-plane % [newskel,newmot] = mirrorMot(skel,mot) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function [newskel,newmot]=mirrorMot(skel,mot) newskel = mirrorSkel(skel); % if isempty(mot.rotationEuler) mot = C_convert2euler(skel,mo...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
diff5point.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/diff5point.m
1,268
utf_8
d19f6076adaa6ec1abfbb4f8d9262385
% function newStream = diff5point(stream,samplingRate,varargin) % 5-point derivation % author: Jochen Tautges (tautges@cs.uni-bonn.de) function newStream = diff5point(stream,samplingRate,varargin) switch nargin case 2 weights = [1 -8 0 8 -1]; divisor = 12/samplingRate; case 3 ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
readNrOfFramesFromFile.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/readNrOfFramesFromFile.m
809
utf_8
516fa9a9fee29687bc51f14188778810
% function readNrOfFramesFroMFile % reads number of frames from specified amc-file % cf. function readNumFrames function nrOfFrames = readNrOfFramesFromFile(filename) fid = fopen(filename,'rt'); found = false; % found last frame number fseek(fid,-1,'eof'); % jump to end of file while (ftell(fid) > 0 && ~foun...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
getStepSizes.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/getStepSizes.m
4,160
utf_8
fb6790e712da00511e990048a8359fbc
% function getStepSizes % (naively) computes stepSizes for walking motions % stepSizes = getStepSizes(skel,mot) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function [stepSizesMin,stepSizesMax] = getStepSizes(mot) leftJoint = 4; rightJoint = 9; % for i=1:mot.nframes-1 % if ((mot.jointTraje...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
recMotWithPCAmat.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/recMotWithPCAmat.m
9,092
utf_8
8e2d52213cfa8169d8d9e2c0ae5f401f
% function recMotWithPCA(dataMat,skel,mot,dataRep) % % dataMat = dofs x frames % skel = skel struct of original motion % mot = mot struct of original motion % dataRep = 'quat' or 'euler' function res = recMotWithPCAmat(dataMat,skel,mot,dataRep) mot.rootTranslation = zeros(3,mot.nframes); ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
cutMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/cutMotion.m
3,166
utf_8
22b84462b6dea40f66c0315e91e41e86
% function cutMotion % cuts a motion sequence to specified start and end frame % mot = cutMotion(mot,startFrame,endFrame) % authors: Bjoern Krueger (kruegerb@cs.uni-bonn.de), % Jochen Tautges (tautges@cs.uni-bonn.de) function [mot] = cutMotion(mot,startF,endF) if startF~=1 || endF~=mot.nframes ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
mirrorSkel.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/mirrorSkel.m
1,411
utf_8
083463bbc71dba379e79c0608dae419f
% function mirrorSkel % mirrors specified skeleton on the yz-plane % newskel = mirrorSkel(skel) % author: Jochen Tautges (tautges@cs.uni-bonn.de) function newskel=mirrorSkel(skel) newskel = skel; newskel.filename = [skel.filename '.mirrored']; pairs{1} = [6,11]; pairs{2} = [5,10]; pairs{3} =...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
recMotFromAcc.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/recMotFromAcc.m
4,581
utf_8
9f50d3e6824a1923102a16358de9bac5
% function recMotFromAcc % % db.acc % db.quat % % open questions concerning db: % - coordinate frame transformation % - resampling % - sensor/joint offsets % - flips that screw up accelerations % % more unsolved problems % - initialization (t-pose) % - choice of skeleton (optimization?) function res = ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
reconstructCMUmotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/reconstructCMUmotion.m
1,714
utf_8
5496ac3f901d2b3599492c4a250f9c60
% res=reconstructCMUmotion(TensorForOptimization,CMUresult[,joints[,TensorForReconstruction]]]) function res = reconstructCMUmotion(TensorForReconstruction,skel,origmot,varargin) switch nargin case 3 joints = (1:31); case 4 joints = varargin{1}; case 5 joints ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
zupt.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/zupt.m
3,001
utf_8
23a157324073343dc07482c998979a90
% zero velocity updates % input: % a - global accelerations (nSamples x 3), gravity removed % t0 - start frame of motion (here velocity is said to be zero) % T - end frame of motion (here velocity is said to be zero) % frameRate - frame rate % output: % res.v - velocity before correction % res.vc - velocity...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
editMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/editMotion.m
2,216
utf_8
724f383800cf40f393dfd8ffa43699d6
% constraints.jointID % constraints.jointList % constraints.pos % constraints.frame % constraints.windowsize function mot = editMotion(skel,mot,constraints) A = []; b = []; Aeq = []; beq = []; lb = []; ub = []; for i=constraints.jointList' lb = [lb; skel.nodes(i).limits(:,1)]; ub = [ub; skel.no...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
uipickfiles.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/uipickfiles.m
23,893
utf_8
fa44e011ea5d774cceebf0f15764edd5
function out = uipickfiles(varargin) %uipickfiles: GUI program to select file(s) and/or directories. % % Syntax: % files = uipickfiles('PropertyName',PropertyValue,...) % % The current directory can be changed by operating in the file navigator: % double-clicking on a directory in the list to move further down...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
reconstructXsensMotion.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/reconstructXsensMotion.m
2,018
utf_8
2f580dc44896b8d1f48068954ce01bda
function recmot=reconstructXsensMotion(Tensor,skel,mot,varargin) switch nargin case 3 consideredJoints=mot.animated'; case 4 consideredJoints=varargin{1}; otherwise error('Wrong number of input arguments!'); end X0 = cell(1,Tensor.numNaturalModes); for i=1:Tensor.numNat...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
linearCombinationOfSkeletons.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/linearCombinationOfSkeletons.m
945
utf_8
e48142f9ab8c6c415213225131adfcd5
% example: skel=linearCombinationOfSkeletons({skel1,skel2},[0.5 0.5]); function skel=linearCombinationOfSkeletons(skels,weights) numSkeletons=length(skels); if numSkeletons~=length(weights) error('Error: Number of skeletons must equal number of weights!'); end % Initialization skel=skels{1}; skel.file...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
findOptimalPCtransformation.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/findOptimalPCtransformation.m
1,655
utf_8
578de504452a5ed36113682f0e377274
function T = findOptimalPCtransformation(pc1,pc2) % pc1(1,:)=pc1(1,:)*9.81; % pc1(2,:)=-pc1(2,:); % pc1(3,:)=pc1(3,:)/9.81; T.pc1 = pc1; T.pc2 = pc2; T.pc1_abs = normOfColumns(T.pc1); T.pc2_abs = normOfColumns(T.pc2); figure() plot(T.pc1_abs); hold all plot(T.pc2_abs); hold off drawnow; fi...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
resampleMot.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/resampleMot.m
3,898
utf_8
c02cbf66d8145c49bea30ef2d6ce0c30
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % function resampleMot % resamples a motion to create homogeneous point cloud trajectories % % resmot = resampleMot(skel,mot[,joints[,numberOfSamples]]) % % input: % - skel: skeleton (required for forward kinematics) % - m...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
recMotFromSimWiiData.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/Optimization/recMotFromSimWiiData.m
3,273
utf_8
19bb2e00e269f2cb7d9d4d6ed272b114
function res = recMotFromSimWiiData(ttQuats,ttRootPos,skel,mot,joints) mot = fitMotion(skel,mot); refMot = extractMotFromTTensor(skel,ttQuats,ttRootPos,[1,1,1]); [D,w] = pointCloudDTW_pos(refMot,mot,2); mot = warpMotion(w,skel,mot); res.skel = skel; res.origmot = mot; res.joints = joints; o...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
dtwModStep.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/synthesis/dtwModStep.m
2,200
utf_8
e95ff16ef5caf73be712e049bcd19e07
function [Dist,D,k,w,d]=dtwModStep(t1,r1) %Dynamic Time Warping Algorithm %Dist is unnormalized distance between t1 and r1 %D is the accumulated distance matrix (GDM) %k is the normalizing factor %w is the optimal path %d is the local distance matrix (LDM) %t1 is the vector you are testing against ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
dtw.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/synthesis/dtw.m
2,597
utf_8
a29941e18ad22ac3aedb4694fc9168bf
function [Dist,D,k,w,d]=dtw(varargin) %Dynamic Time Warping Algorithm %Dist is unnormalized distance between t1 and r1 %D is the accumulated distance matrix (GDM) %k is the normalizing factor %w is the optimal path %d is the local distance matrix (LDM) %t1 is the vector you are testing against %r1...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
ldm.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/synthesis/ldm.m
1,078
utf_8
c37961027af9710fa4d03ca8ab9e3f7b
function [d]=ldm(t1,r1) %Dynamic Time Warping Algorithm %d is the local distance matrix (LDM) %Transpose the given Matrices t1=t1'; r1=r1'; [rows,N]=size(t1); [rows,M]=size(r1); d=zeros(N,M); %Calculation of the LDM: fprintf('Row: '); tic; for m=1:M for n=1:N %This calculates the ...
github
umariqb/3D_Pose_Estimation_CVPR2016-master
grMinSpanTree.m
.m
3D_Pose_Estimation_CVPR2016-master/tools_intern/synthesis/GrTheory/grMinSpanTree.m
2,174
utf_8
de38e2d0ce1875aae138ca0a0ca15931
function nMST=grMinSpanTree(E) % Function nMST=grMinSpanTree(E) solve % the minimal spanning tree problem for a connected graph. % Input parameter: % E(m,2) or (m,3) - the edges of graph and their weight; % 1st and 2nd elements of each row is numbers of vertexes; % 3rd elements of each row is weight o...