cd E:\GigE_mocap_data\gatsby140\gatsby140_07282013

load camera_params

T0 = tic;

ii = 1;
km_filename = '.\Data1\Data1_km\km_03941.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('gatsby140_km',sprintf('Data%d',ii),3942,4064,options)

km_filename = '.\Data1\Data1_km\km_06778.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('gatsby140_km',sprintf('Data%d',ii),6779,6876,options)

km_filename = '.\Data1\Data1_km\km_07148.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('gatsby140_km',sprintf('Data%d',ii),7149,7230,options)

km_filename = '.\Data1\Data1_km\km_07482.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('gatsby140_km',sprintf('Data%d',ii),7483,7557,options)

ii = 3;
km_filename = '.\Data3\Data3_km\km_13575.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('gatsby140_km',sprintf('Data%d',ii),13576,13827,options)

ii = 4;
km_filename = '.\Data4\Data4_km\km_11041.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('gatsby140_km',sprintf('Data%d',ii),11042,11242,options)

clear camera_params

cd E:\GigE_mocap_data\achilles151\achilles151_10232013

load camera_params

ii = 1;
km_filename = '.\Data1\Data1_km\km_08067.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),8068,8126,options)
ii = 3;
km_filename = '.\Data3\Data3_km\km_03100.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),3101,3280,options)
ii = 6;
km_filename = '.\Data6\Data6_km\km_00611.mat';
options = km_initial_conditions(km_filename);
options.end_parfor = false;
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),612,761,options)
ii = 7;
km_filename = '.\Data7\Data7_km\km_04621.mat';
options = km_initial_conditions(km_filename);
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),4622,4687,options)

T1 = toc(T0)
