T0 = tic;
cd(getenv('Mocap'))
fid = fopen(sprintf('Run%s.txt',date),'w');

cd('E:\GigE_mocap_data\achilles151\achilles151_10232013')
fprintf(fid,'%s\n',pwd);
for ii = 1:7
    fprintf(fid,'\tTrial %d\n',ii);
    kinematicModelfitGPU('achilles151_km',sprintf('Data%d',ii))
end
fprintf(fid,'\n');
fprintf(1,'1 sessions processed in %10.2f seconds\n',toc(T0));
fprintf(fid,'1 sessions processed in %10.2f seconds\n',toc(T0));

% cd('E:\GigE_mocap_data\Cicero\Cicero08282014')
% fprintf(fid,'%s\n',pwd);
% load camera_params
% for ii = [18 19 24 29 34 38]
%    [rend_env,neighbors,final_cost] = rendering_environmentHardCases(sprintf('Data%d',ii),cameraVec,[4 5 6]);
% end
% fprintf(fid,'\n');
% 
% T1 = toc(T0);
% fprintf(1,'1 sessions processed in %10.2f seconds\n',T1);
% fprintf(fid,'1 sessions processed in %10.2f seconds\n',T1);

% T0 = tic;
% cd(getenv('Mocap'))
% fid = fopen(sprintf('Run%s.txt',date),'w');
% 
% cd('E:\GigE_mocap_data\Cicero\Cicero08202014')
% fprintf(fid,'%s\n',pwd);
% for ii = 2:5
%     if ii == 2
%         CorrectModelFitSegment('cicero_km',ii,601,[])
%     else
%         CorrectModelFitSegment('cicero_km',ii,1,[])
%     end
% end
% fprintf(fid,'\n');
% 
% T1 = toc(T0);
% fprintf(1,'1 sessions processed in %10.2f seconds\n',T1);
% fprintf(fid,'1 sessions processed in %10.2f seconds\n',T1);

%{
cd('E:\GigE_mocap_data\achilles151\achilles151_11042013')
fprintf(fid,'%s\n',pwd);
for ii = 2:35
    fprintf(fid,'\tTrial %d\n',ii);
    if ii > 1 && ii < 4
        load(sprintf('Data%d\\Data%d_km\\km_00001.mat',ii,ii));
        options.theta = model_fit.theta;options.sp_coords = model_fit.sp_coords;
        options.compute_first = false;
        kinematicModelfitGPU('cicero_km',sprintf('Data%d',ii),1,[],options)
    else
        kinematicModelfitGPU('cicero_km',sprintf('Data%d',ii))
    end
end
fprintf(fid,'\n');

cd('E:\GigE_mocap_data\Cicero\Cicero08212014')
fprintf(fid,'%s\n',pwd);
for ii = 1:7
    fprintf(fid,'\tTrial %d\n',ii);
    kinematicModelfitGPU('cicero_km',sprintf('Data%d',ii))
end
fprintf(fid,'\n');


cd('E:\GigE_mocap_data\Cicero\Cicero08292014')
fprintf(fid,'%s\n',pwd);
for ii = 1:40
    fprintf(fid,'\tTrial %d\n',ii);
    kinematicModelfitGPU('cicero_km',sprintf('Data%d',ii))
end
fprintf(fid,'\n');

cd('E:\GigE_mocap_data\Cicero\Cicero08282014')
fprintf(fid,'%s\n',pwd);
for ii = 1:42
    fprintf(fid,'\tTrial %d\n',ii);
    kinematicModelfitGPU('cicero_km',sprintf('Data%d',ii))
end
fprintf(fid,'\n');

cd('E:\GigE_mocap_data\buddy140\buddy140_06142013')
fprintf(fid,'%s\n',pwd);
load camera_params
for ii = 1:40
    fprintf(fid,'\tTrial %d\n',ii);
    VisualHullConstruction6Cam(cameraVec,sprintf('Data%d',ii),1,[],0.015,1)
end
fprintf(fid,'\n');

cd('E:\GigE_mocap_data\buddy140\buddy140_06012013')
fprintf(fid,'%s\n',pwd);
for ii = 1:4
    fprintf(fid,'\tTrial %d\n',ii);
    kinematicModelfitGPU('buddy140_km',sprintf('Data%d',ii))
end
fprintf(fid,'\n');
%}
