% Processing buddy140_06142013 kinematic model
cd E:\GigE_mocap_data\buddy140\buddy140_06142013

% estimate model
options.end_parfor = false;
for ii = 30:40
    if ii == 40
        options.end_parfor = true;
    end
    if ii == 30
        kinematic_modelfit('buddy140_km',sprintf('Data%d',ii),1,1275,options);
    else
        kinematic_modelfit('buddy140_km',sprintf('Data%d',ii),[],[],options);
    end
end

% % Re-Calculate visual hulls for buddy140_06182013
% cd E:\GigE_mocap_data\buddy140\buddy140_06182013
% load camera_params
% 
% for ii = 1:36
%     VisualHullConstruction(cameraVec,sprintf('Data%d',ii),[],[],0.0175)
% end