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,0);
kinematic_modelfit('gatsby140_km',sprintf('Data%d',ii),3942,4064,options)

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

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

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

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

ii = 4;
km_filename = '.\Data4\Data4_km\km_11042.mat';
options = km_initial_conditions(km_filename);
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;
VisualHullConstruction(cameraVec,sprintf('Data%d',ii),8069,8126,0.0125);
ii = 3;
VisualHullConstruction(cameraVec,sprintf('Data%d',ii),3102,3280,0.0125);
ii = 6;
VisualHullConstruction(cameraVec,sprintf('Data%d',ii),613,761,0.0125);
ii = 7;
VisualHullConstruction(cameraVec,sprintf('Data%d',ii),4623,4687,0.0125);

ii = 1;
km_filename = '.\Data1\Data1_km\km_08068.mat';
options = km_initial_conditions(km_filename);
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),8068,8126,options)
ii = 3;
km_filename = '.\Data3\Data3_km\km_03101.mat';
options = km_initial_conditions(km_filename);
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),3101,3280,options)
ii = 6;
km_filename = '.\Data6\Data6_km\km_00612.mat';
options = km_initial_conditions(km_filename);
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),612,761,options)
ii = 7;
km_filename = '.\Data7\Data7_km\km_04622.mat';
options = km_initial_conditions(km_filename);
kinematic_modelfit('achilles151_km',sprintf('Data%d',ii),4622,4687,options)

T1 = toc(T0)