JAHC Hole Finder (Template Hole Finder) » History » Version 2
Amber Herold, 04/27/2010 02:40 PM
1 | 1 | Amber Herold | h1. JAHC Hole Finder (Template Hole Finder) |
---|---|---|---|
2 | |||
3 | |||
4 | |||
5 | The JAHC Hole Finder class is a variation of Hole Finder class. The purpose and operation |
||
6 | is similar in the two node classes. The differences are 1: JAHC Hole Finder does not use edge |
||
7 | image for correlation but the original, and 2: JAHC Hole Finder uses a scaled template image |
||
8 | rather than a simple geometric ring for the correlation step. Like the Hole Finder, the values |
||
9 | in this node vary so much from grid to grid (and from square to square) that the best way to |
||
10 | find these parameters is by going through a step-by-step trial and error process. To proceed |
||
11 | from one step of the hole targeting process to another, simply proceed from top to bottom |
||
12 | through the display selection buttons in the image control panel. The display settings |
||
13 | associated with each display selection are the locations where the JAHC Hole Finder parameters |
||
14 | can be adjusted. To see the final acquisition and focus targets, enable only the Original, |
||
15 | acquisition, and focus display selections. |
||
16 | |||
17 | |||
18 | |||
19 | Required bindings for recieving images and publishing targets: |
||
20 | |||
21 | <highlights> |
||
22 | <simplelist type="vert"> |
||
23 | <member> previous Acquisition - (AcquisitionImagePublishEvent) -> JAHC Hole |
||
24 | Finder</member> |
||
25 | <member> JAHC Hole Finder - (ImageTargetListPublishEvent) -> next Acquisition</member> |
||
26 | <member> JAHC Hole Finder - (QueuePublishEvent) -> next Acquisition</member> |
||
27 | </simplelist> |
||
28 | </highlights> |
||
29 | Required bindings for proper waiting among nodes: |
||
30 | |||
31 | <highlights> |
||
32 | <simplelist type="vert"> |
||
33 | <member> JAHC Hole Finder- (ImageProcessDoneEvent) -> previous Acquisition</member> |
||
34 | <member> next Acquisition - (TargetListDoneEvent) -> JAHC Hole Finder</member> |
||
35 | </simplelist> |
||
36 | </highlights> |
||
37 | |||
38 | |||
39 | |||
40 | |||
41 | h2. Settings |
||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | * Allow for user verification of picked holes = When enabled, this feature will |
||
48 | pause and wait for the user to verify whether the correct exposure and focus targets |
||
49 | have been selected after the Hole Finder finished processing the input image. |
||
50 | |||
51 | |||
52 | * Queue up targets = When enabled, submit targets do not publish them immediately |
||
53 | but to put them in a target list queue. |
||
54 | |||
55 | |||
56 | * Declare drift when queue submitted= When enabled, force target shift correction |
||
57 | when the queue is submitted. Useful when accurate targeting is needed. |
||
58 | |||
59 | |||
60 | * Skip automated hole finder= When enabled, the automatic Hole Finder algorithm |
||
61 | will be skipped altogether. |
||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | h2. Image Control Panel |
||
72 | |||
73 | |||
74 | NOTE: To see the effects of Testing the settings for a particular Hole Finder step in |
||
75 | the Image Control Panel, the corresponding JAHC Hole Finder step Display must be enabled |
||
76 | before using the Test feature in that step's Display Settings. |
||
77 | |||
78 | |||
79 | |||
80 | h2. Original |
||
81 | |||
82 | |||
83 | |||
84 | |||
85 | h2. Display |
||
86 | |||
87 | |||
88 | To view the original input image without any image processing done to it, enable |
||
89 | this button. Enabling this button will disable/override the Edge, Template, and |
||
90 | Threshold Displays. |
||
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||
96 | h2. Display Settings |
||
97 | |||
98 | |||
99 | |||
100 | |||
101 | |||
102 | * Original Image: File Entry = Enter the path and name of an MRC image that the |
||
103 | JAHC Hole Finder can be tested on. This feature allows JAHC Hole Finder to be |
||
104 | tested without having run a full Leginon MSI application. |
||
105 | |||
106 | |||
107 | |||
108 | |||
109 | |||
110 | |||
111 | |||
112 | |||
113 | |||
114 | |||
115 | |||
116 | h2. Template |
||
117 | |||
118 | |||
119 | The purpose of the Template step is to cross correlate a template of the properly |
||
120 | sized template holes against the original image. |
||
121 | |||
122 | |||
123 | |||
124 | h2. Display |
||
125 | |||
126 | |||
127 | To view the Template image, enable this button. Enabling this button will |
||
128 | disable/override the Original, Edge, and Threshold Displays. |
||
129 | |||
130 | |||
131 | |||
132 | |||
133 | |||
134 | h2. Display Settings |
||
135 | |||
136 | |||
137 | |||
138 | |||
139 | |||
140 | * Use "phase | cross" correlation = to do this calculation. |
||
141 | |||
142 | |||
143 | * Template Filename = Enter the path and name of a template MRC image. |
||
144 | |||
145 | |||
146 | * Original Template Diameter = Enter the value in pixel. |
||
147 | |||
148 | |||
149 | * Final Template Diameter = A scaled diameter in pixel. It should be chosen |
||
150 | give the sharpest correlation peak upon testing. |
||
151 | |||
152 | |||
153 | * Test = Press this button to test/apply the parameters that have been adjusted |
||
154 | in this step. |
||
155 | |||
156 | |||
157 | |||
158 | |||
159 | |||
160 | |||
161 | |||
162 | |||
163 | |||
164 | |||
165 | |||
166 | h2. Threshold |
||
167 | |||
168 | |||
169 | The purpose of the Threshold step is to apply a threshold to the previous Template |
||
170 | image. It is in unit of number of standard deviation above the mean. The Threshold image |
||
171 | should have dots that represent the center of all the found holes. |
||
172 | |||
173 | |||
174 | |||
175 | h2. Display |
||
176 | |||
177 | |||
178 | To view the Threshold image, enable this button. Enabling this button will |
||
179 | disable/override the Original, Edge, and Template Displays. |
||
180 | |||
181 | |||
182 | |||
183 | |||
184 | |||
185 | h2. Display Settings |
||
186 | |||
187 | |||
188 | |||
189 | |||
190 | |||
191 | * Threshold = Enter the Threshold value of a dot that represents the center of |
||
192 | a hole (either as absolute value or relative to the value with the stdv shown for |
||
193 | the correlation image). |
||
194 | |||
195 | |||
196 | * Test = Press this button to test/apply the Threshold to the template |
||
197 | correlation image. Only the dots hat represent the center of the holes should |
||
198 | appear. It is highly likely that dots not representing the center of a hole will |
||
199 | also appear. |
||
200 | |||
201 | |||
202 | |||
203 | |||
204 | |||
205 | |||
206 | |||
207 | |||
208 | |||
209 | |||
210 | |||
211 | h2. Blobs |
||
212 | |||
213 | |||
214 | The purpose of the Blobs step is to begin to narrow down the "hole center dots" that |
||
215 | have been found. This step serves as additional criteria for finding good holes. |
||
216 | |||
217 | |||
218 | |||
219 | h2. Display |
||
220 | |||
221 | |||
222 | To view Blobs, either the Original, Edge, Template, or Threshold Displays must be |
||
223 | enabled. The Blobs that pass this step will be shown with a turquoise crosshair. |
||
224 | |||
225 | |||
226 | |||
227 | |||
228 | |||
229 | h2. Display Settings |
||
230 | |||
231 | |||
232 | |||
233 | |||
234 | |||
235 | * Border = The pixel value distance from the edge of the image where all |
||
236 | potential hole targets will be erased. |
||
237 | |||
238 | |||
239 | * Max. blobs = The maximum number of hole targets or blobs at this point that |
||
240 | are allowed. If the number of blobs exceeds this number, the extra blobs will be |
||
241 | eliminated. |
||
242 | |||
243 | |||
244 | * Max. blob size = The maximum size of a blob that is allowed to pass. This is |
||
245 | roughly the square of an average blob diameter. Use the ruler tool on the |
||
246 | Threshold image to determine the average diameter of a blob. |
||
247 | |||
248 | |||
249 | * Test = Press this button to test/apply the Blobs criteria to the Threshold |
||
250 | image. |
||
251 | |||
252 | |||
253 | |||
254 | |||
255 | |||
256 | |||
257 | |||
258 | |||
259 | |||
260 | |||
261 | |||
262 | h2. Lattice |
||
263 | |||
264 | |||
265 | The purpose of the Lattice step is to determine whether the blobs or "hole center |
||
266 | dots" fit in a lattice that describes how the hole layout. |
||
267 | |||
268 | |||
269 | |||
270 | h2. Display |
||
271 | |||
272 | |||
273 | To view Lattice, either the Original, Template, or Threshold Displays must be |
||
274 | enabled. The Lattice blobs that pass this step will be shown with a pink |
||
275 | crosshair. |
||
276 | |||
277 | |||
278 | |||
279 | |||
280 | |||
281 | h2. Display Settings |
||
282 | |||
283 | |||
284 | |||
285 | |||
286 | |||
287 | * Lattice Fitting Spacing = The distance from the center of two holes in the |
||
288 | horizontal/vertical lattice directions (not the diagonal lattice |
||
289 | directions). |
||
290 | |||
291 | |||
292 | * Lattice Fitting Tolerance = The tolerance allowed for holes that may not |
||
293 | exactly lie in the described lattice. |
||
294 | |||
295 | |||
296 | * Hole Statistics Radius = The radius in pixels of the holes (that pass the |
||
297 | lattice criteria) that will be used to determine each hole's statistics. |
||
298 | |||
299 | |||
300 | * Hole Statistics Zero Thickness = The intensity value of an empty hole, i.e. |
||
301 | zero thickness intensity. |
||
302 | |||
303 | |||
304 | * Test = Press this button to test/apply the Lattice criteria to the result of |
||
305 | the Blobs criteria. |
||
306 | |||
307 | |||
308 | |||
309 | |||
310 | |||
311 | |||
312 | |||
313 | |||
314 | |||
315 | |||
316 | |||
317 | h2. acquisition |
||
318 | |||
319 | |||
320 | The purpose of the acquisition step is to select holes of the proper ice thickness |
||
321 | and arrange the desired acquisition target layout. The "focus" and "acquisition" JAHC Hole |
||
322 | Finder steps Display Settings appear in the same window. For the purpose of this |
||
323 | documentation to facilitate the separation of steps in the user interface, acquisition and |
||
324 | focus will be addressed separately. Therefore, only the parameters pertaining to |
||
325 | acquisition targets will discussed in this section. The parameters not covered in this |
||
326 | section are part of the focus section. |
||
327 | |||
328 | |||
329 | |||
330 | h2. Display |
||
331 | |||
332 | |||
333 | To view acquisition, either the Original, Edge, Template, or Threshold Displays |
||
334 | must be enabled. The acquisition targets that pass this step will be shown with a green |
||
335 | crosshair. |
||
336 | |||
337 | |||
338 | |||
339 | |||
340 | |||
341 | h2. Display Settings |
||
342 | |||
343 | |||
344 | |||
345 | |||
346 | |||
347 | |||
348 | |||
349 | Ice Thickness Threshold: |
||
350 | * Min. mean = Enter the minimum hole ice thickness value allowed. |
||
351 | |||
352 | |||
353 | * Max. mean = Enter the maximum hole ice thickness value allowed. |
||
354 | |||
355 | |||
356 | * Max. stdev = Enter the maximum hole standard deviation value allowed. |
||
357 | |||
358 | |||
359 | |||
360 | |||
361 | |||
362 | Target Template: |
||
363 | |||
364 | |||
365 | |||
366 | |||
367 | * Use target template = When enabled, template targets will be used to compose |
||
368 | a target list. When not enabled, the center of the hole is the default |
||
369 | target. |
||
370 | |||
371 | |||
372 | * Acquisition Target Template (Add|Edit|Delete) = Add|Edit|Delete acquisition |
||
373 | targets that define the locations of each acquisition target. The acquisition |
||
374 | target coordinates (x,y) are measured relative to the center of a hole. Use the |
||
375 | ruler tool to determine this distance. |
||
376 | |||
377 | |||
378 | * Test = Press this button to test/apply the ice thickness criteria and |
||
379 | potentially create an acquisition target template. |
||
380 | |||
381 | |||
382 | |||
383 | |||
384 | |||
385 | |||
386 | |||
387 | |||
388 | |||
389 | |||
390 | |||
391 | h2. focus |
||
392 | |||
393 | |||
394 | The purpose of the focus step is to focus targets near selected holes. The "focus" |
||
395 | and "acquisition" Hole Finder steps Display Settings appear in the same window. For the |
||
396 | purpose of this documentation to facilitate the separation of steps in the user interface, |
||
397 | acquisition and focus will be addressed separately. Therefore, only the parameters |
||
398 | pertaining to focus targets will discussed in this section. The parameters not covered in |
||
399 | this section are part of the acquisition section. |
||
400 | |||
401 | |||
402 | |||
403 | h2. Display |
||
404 | |||
405 | |||
406 | To view focus, either the Original, Edge, Template, or Threshold Displays must be |
||
407 | enabled. The focus targets that pass this step will be shown with a blue |
||
408 | crosshair. |
||
409 | |||
410 | |||
411 | |||
412 | |||
413 | |||
414 | h2. Display Settings |
||
415 | |||
416 | |||
417 | |||
418 | |||
419 | |||
420 | |||
421 | |||
422 | Ice Thickness Threshold: |
||
423 | * Focus hole selection = Any Hole | Off | Good Hole; Select the type of Z Focus |
||
424 | target selection. This hole will be used by Z Focus to correct stage z height when |
||
425 | first moving to the new square. |
||
426 | |||
427 | - Good Hole will select one of the good holes that passed the ice thickness |
||
428 | test. |
||
429 | |||
430 | - Any Hole will select any of the holes that passed (up until before the ice |
||
431 | thickness test). |
||
432 | |||
433 | - Off will turn Z Focus correction off. |
||
434 | |||
435 | |||
436 | |||
437 | |||
438 | |||
439 | Target Template: |
||
440 | |||
441 | |||
442 | |||
443 | |||
444 | * Use target template = When enabled, template targets will be used to compose |
||
445 | a target list. When not enabled, the center of the hole is the default |
||
446 | target. |
||
447 | |||
448 | |||
449 | * Focus Target Template (Add|Edit|Delete) = Add|Edit|Delete focus targets that |
||
450 | define the locations of each focus target. The focus target coordinates (x,y) are |
||
451 | measured relative to the center of a hole. Use the ruler tool to determine this |
||
452 | distance. |
||
453 | |||
454 | |||
455 | * Focus template thickness = Enter values that are used to determine whether |
||
456 | the area where the focusing has ice that is too thick. If the ice is to thick and |
||
457 | does not pass this ice thickness criteria, then that focus target will not be |
||
458 | used. Only the first focus target that passes is used. More than one focus target |
||
459 | can pass the focus template thickness criteria. |
||
460 | |||
461 | - Use focus template thickness = When enabled, focus template targets will be |
||
462 | checked against these ice thickness criteria. |
||
463 | |||
464 | - Stats. radius = the radius surrounding the focus target that is included in |
||
465 | the statistics measurement |
||
466 | |||
467 | - Min. mean thickness = Enter the minimum ice thickness value allowed. |
||
468 | |||
469 | - Max. mean thickness = Enter the maximum ice thickness value allowed. |
||
470 | |||
471 | - Max. std. thickness = Enter the maximum standard deviation value |
||
472 | allowed. |
||
473 | |||
474 | |||
475 | * Test = Press this button to test/apply the ice thicness focus criteria and |
||
476 | create a focus target template. |
||
477 | 2 | Amber Herold | |
478 | |||
479 | |||
480 | |||
481 | ______ |
||
482 | |||
483 | [[Hole Depth|< Hole Depth]] | [[Manual Acquisition|Manual Acquisition >]] |
||
484 | |||
485 | ______ |