-
Notifications
You must be signed in to change notification settings - Fork 1
/
make_movie_worm_20170720.m
51 lines (40 loc) · 1.6 KB
/
make_movie_worm_20170720.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
clear all;
close all;
%% load parameters
param = init_param();
%% setup parameters
[~,hostname] = system('hostname')
param.hostname = strtrim(hostname);
if ~isempty(strfind(param.hostname, 'Justins-Mac'))
param.ppath = '/Users/justin/Desktop/DLFM';
addpath([param.ppath '/lotus-registration']);
param.ipath = [param.ppath '/worm/20170720'];
param.opath = param.ipath;
param.spath = param.opath;
param.inter = [param.ipath '/interpolate/'];
elseif ~isempty(strfind(param.hostname, 'willis'))
param.ppath = '/home/jkinney/Desktop/DLFM';
addpath([param.ppath '/lotus-registration']);
param.ipath = [param.ppath '/worm/20170720'];
param.opath = param.ipath;
param.spath = param.opath;
param.inter = [param.ipath '/interpolate/'];
else
param.ppath = '/home/jkinney';
addpath([param.ppath '/lotus-registration']);
param.ipath = '/om/user/ehoseini/MyData/DuallensLightField/7_20_17/video_1';
param.opath = '/om/scratch/Tue/jkinney/worm/20170720';
param.spath = '/om/user/jkinney/DLFM/worm/20170720';
param.inter = [param.spath '/interpolate/'];
end
param.inputFilePath1 = [param.ipath '/horizontal/Reconstructed/'];
param.inputFilePath2 = [param.ipath '/vertical/Reconstructed/'];
param.savePath = [param.opath '/registration/'];
param.m = 13;
param.n = 300;
param.fpattern = 'Recon3D_solver_1_FrameNumber_%04d.mat';
param
prefix = 'worm_20170720';
timestamp = datestr(datetime('now'),'yyyymmdd_HHMMSS');
outputFileName = [param.spath '/' prefix '_' timestamp]
genVideo(param, outputFileName)