1 package com.github.celldynamics.quimp.plugin.ana;
2
3 import java.io.File;
4
5 import com.github.celldynamics.quimp.Outline;
6 import com.github.celldynamics.quimp.QParams;
7 import com.github.celldynamics.quimp.filesystem.converter.FormatConverter;
8 import com.github.celldynamics.quimp.utils.QuimpToolsCollection;
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 public class ANAp {
24
25
26
27
28 public File[] fluTiffs;
29
30
31
32
33
34 public transient File inFile;
35
36
37
38 public transient File outFile;
39
40
41
42
43
44 public transient File statFile;
45
46
47
48 public final transient double stepRes = 0.04;
49
50
51
52 public final transient double freezeTh = 1;
53
54
55
56
57
58 public final transient double angleTh = 0.1;
59
60
61
62
63
64 public final transient double oneFrameRes = 1;
65
66
67
68
69
70 public transient double scale = 1.0;
71
72
73
74
75
76 public transient double frameInterval;
77
78
79
80
81
82 public transient int startFrame;
83
84
85
86
87
88 public transient int endFrame;
89
90
91
92
93 transient int[] presentData;
94
95
96
97
98 transient boolean cleared;
99
100
101
102
103 transient boolean noData;
104
105
106
107
108 transient int useLocFromCh;
109
110 private double cortexWidthPixel;
111 private double cortexWidthScale;
112
113
114
115
116 public ANAp() {
117 fluTiffs = new File[3];
118 fluTiffs[0] = new File("/");
119 fluTiffs[1] = new File("/");
120 fluTiffs[2] = new File("/");
121 presentData = new int[3];
122 setCortextWidthScale(0.7);
123 }
124
125
126
127
128
129
130 public ANApANAp" href="../../../../../../com/github/celldynamics/quimp/plugin/ana/ANAp.html#ANAp">ANAp(ANAp src) {
131 this.inFile = new File(src.inFile.getAbsolutePath());
132 this.outFile = new File(src.outFile.getAbsolutePath());
133 this.statFile = new File(src.statFile.getAbsolutePath());
134 this.cortexWidthPixel = src.cortexWidthPixel;
135 this.cortexWidthScale = src.cortexWidthScale;
136 this.scale = src.scale;
137 this.frameInterval = src.frameInterval;
138 this.startFrame = src.startFrame;
139 this.endFrame = src.endFrame;
140 this.presentData = new int[src.presentData.length];
141 System.arraycopy(src.presentData, 0, this.presentData, 0, src.presentData.length);
142 this.cleared = src.cleared;
143 this.noData = src.noData;
144 this.useLocFromCh = src.useLocFromCh;
145
146 this.fluTiffs = new File[src.fluTiffs.length];
147 for (int i = 0; i < fluTiffs.length; i++) {
148 fluTiffs[i] = new File(src.fluTiffs[i].getPath());
149 }
150
151 }
152
153
154
155
156
157
158 void setup(QParams qp) {
159 inFile = qp.getSnakeQP();
160 outFile = new File(inFile.getAbsolutePath());
161 statFile = new File(qp.getStatsQP().getAbsolutePath());
162
163 scale = qp.getImageScale();
164 frameInterval = qp.getFrameInterval();
165 setCortextWidthScale(qp.cortexWidth);
166 startFrame = qp.getStartFrame();
167 endFrame = qp.getEndFrame();
168 cleared = false;
169 noData = true;
170 }
171
172
173
174
175
176
177 public void setCortextWidthScale(double c) {
178 cortexWidthScale = c;
179 cortexWidthPixel = QuimpToolsCollection.distanceFromScale(cortexWidthScale, scale);
180 }
181
182
183
184
185
186
187 public double getCortexWidthPixel() {
188 return cortexWidthPixel;
189 }
190
191
192
193
194
195
196 public double getCortexWidthScale() {
197 return cortexWidthScale;
198 }
199
200
201
202
203
204
205 public void setCortexWidthPixel(double cortexWidthPixel) {
206 this.cortexWidthPixel = cortexWidthPixel;
207 }
208 }