-
Notifications
You must be signed in to change notification settings - Fork 1
/
make_movie_fish_20180227_vid2.m
50 lines (40 loc) · 1.62 KB
/
make_movie_fish_20180227_vid2.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
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 '/fish/20180227/vid2'];
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 '/fish/20180227/vid2'];
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/project/boyden/DualLensLightField/01_23_18_NLS/video1';
param.opath = '/om/scratch/Tue/jkinney/fish/20180227/vid2';
param.spath = '/om/user/jkinney/DLFM/fish/20180227/vid2';
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 = 1;
param.n = 500;
param.fpattern = 'Recon3D_solver_1_FrameNumber_%04d.mat';
param
prefix = 'fish_20180227_vid2';
timestamp = datestr(datetime('now'),'yyyymmdd_HHMMSS');
outputFileName = [param.spath '/' prefix '_' timestamp]
genVideo(param, outputFileName)