-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunscript_LinPosCy2.m
More file actions
87 lines (65 loc) · 2.16 KB
/
runscript_LinPosCy2.m
File metadata and controls
87 lines (65 loc) · 2.16 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
clear all
close all
%% specify these parameters
% folder names
inputfolder = 'C:\Users\tklee.WIN\research\reya_image_analysis_2010\injury movies\Lin_pos_Cy_2\Lin pos Cy 2';
outputfolder = 'C:\Users\tklee.WIN\research\reya_image_analysis_2010\injury movies\output\Lin pos Cy 2';
% inputfolder = 'C:\Users\tklee\Documents\research\reya_image_analysis\Exports Lin neg GFP 2\';
% outputfolder = 'C:\Users\tklee\Documents\research\reya_image_analysis\ouputLinNegGFP';
% pattern for particle images
filebase = '*ch00.tif';
% pattern for reference background image
refbase = '*ch01.tif';
% osteo labeled
osteofile = 'C:\Users\tklee.WIN\research\reya_image_analysis_2010\injury movies\Annotations\Lin pos Cy 2 osteo.tif';
% vascular labeled
vascularfile = 'C:\Users\tklee.WIN\research\reya_image_analysis_2010\injury movies\Annotations\Lin pos Cy 2 vascular.tif';
% outputfilename
outputbase = 'LinPosCy2';
% number of images to analyze
numFrames = 960;
% image parameters
pixelsize = .72;
timestep = 5.628;
% tracking parameters
memory = 100;
min_good_length = 10;
suppress_msgs = 1;
dimension = 2;
max_dist_travel = 20;
% segmentation parameters
filtersize = 10;
threshlevel = 12;
min_size = 5;
refthreshlevel = 20;
smoothsize = 2;
% image display parameters
imlimits = [0 50];
%% load into parameters struct (no need to edit)
fileinfo.inputfolder = inputfolder;
fileinfo.filebase = filebase;
fileinfo.outputfolder = outputfolder;
fileinfo.refbase = refbase;
fileinfo.numFrames = numFrames;
fileinfo.outputbase = outputbase;
fileinfo.osteofile = osteofile;
fileinfo.vascularfile = vascularfile;
fileinfo.pixelsize = pixelsize;
fileinfo.timestep = timestep;
param.mem = memory;
param.good = min_good_length;
param.quiet = suppress_msgs;
param.dim = dimension;
param.dist = max_dist_travel;
param.filtersize = filtersize;
param.threshlevel = threshlevel;
param.min_size = min_size;
param.refthreshlevel = refthreshlevel;
param.smoothsize = smoothsize;
param.imlimits = imlimits;
% %% parallel computing
% matlabpool(4)
%% run the code
trackCells(fileinfo,param)
% %% parallel cmoputing
% matlabpool close