Bright and Dark reference images » History » Version 1
Amber Herold, 04/22/2010 04:50 PM
1 | 1 | Amber Herold | h1. Bright and Dark reference images |
---|---|---|---|
2 | |||
3 | |||
4 | Bright and Dark reference images need to be acquired for every camera setting that will |
||
5 | be used. The camera settings include image dimension, bin size, and offset. Over time, |
||
6 | references may need to be repeatedly acquired. |
||
7 | |||
8 | |||
9 | |||
10 | h2. Correction Channels |
||
11 | |||
12 | |||
13 | |||
14 | When two flat-field-corrected images are correlated, there is often an origin peak |
||
15 | derived from the common normalization image even if both image acquisition contains only |
||
16 | noise. In order to avoid this problem, two or more sets of bright/dark references, and hence |
||
17 | normalization images can be obtained per CCD camera configuration. When a correlation |
||
18 | between two images will be done, Leginon will check the channel of the correction the first |
||
19 | acquired image has used and then force the new image to be corrected by a different |
||
20 | channel. |
||
21 | |||
22 | |||
23 | To use this function, simple set the number of channels to 2 or larger in |
||
24 | Correction/Settings/Image Correction/Reference Creation> while creating the reference |
||
25 | images. |
||
26 | |||
27 | |||
28 | |||
29 | |||
30 | |||
31 | h2. Acquire reference images |
||
32 | |||
33 | |||
34 | |||
35 | * scope> make sure that the CCD will be acquiring images in an area with uniform |
||
36 | beam intensity such as an empty area with no specimen nor support. You may skip a trip |
||
37 | to the scope room by sending one of the high mag preset to the scope from |
||
38 | Leginon. |
||
39 | |||
40 | |||
41 | * Leginon/Node Selector> Select "Correction" node. |
||
42 | |||
43 | |||
44 | * Leginon/Correction/Toolbar> Open "Settings" window. |
||
45 | |||
46 | |||
47 | * Leginon/Correction/Toolbar/Settings> Select one of the Common Camera |
||
48 | Configuration or select Custom mode and enter your own values based on the presets you |
||
49 | created. |
||
50 | |||
51 | |||
52 | * Leginon/Correction/Settings/Camera Configuration> Enter the Exposure time. It |
||
53 | should be chosen so that the image is not saturated and ideally close to the condition |
||
54 | that will be used in the experiments. If unsure about the experimental condition, use an |
||
55 | exposure time that gives high but not saturated counts. |
||
56 | |||
57 | |||
58 | * Leginon/Correction/Settings>By default, the corrector node is set to average 3 |
||
59 | images together to create one reference image and to despike the hot pixels with |
||
60 | averaged neighbor hood values. These can be changed if desired. |
||
61 | |||
62 | |||
63 | * Leginon/Correction/Settings> It is recommended to use 2 <link |
||
64 | linkend="Cal_cor_channel">correction channels</link> for the camera configuration used |
||
65 | for correlation peak search. |
||
66 | |||
67 | |||
68 | * Leginon/Correction/Settings> Click OK to exit settings. |
||
69 | |||
70 | |||
71 | * Leginon/Correction/Toolbar> Select "Raw image " from the pull down list of |
||
72 | acquisition modes and then click on "Acquire" button next to the selector to view an |
||
73 | image that is not corrected. |
||
74 | |||
75 | |||
76 | * Leginon/Correction/Toolbar> Select "Dark reference" in the acquisition mode |
||
77 | selector and then click "Acquire" to acquire the Dark reference image for this |
||
78 | particular camera configuration. |
||
79 | |||
80 | |||
81 | * Leginon/Correction/Toolbar> Select "Bright reference" and repeat the acquisition |
||
82 | to obtain the Bright reference. |
||
83 | |||
84 | |||
85 | * Leginon/Correction/Toolbar> Select "Corrected image" and then "Acquire" to view |
||
86 | the corrected image. A corrected image should be free of artifacts and have smaller |
||
87 | standard deviation than the raw image, in general. |
||
88 | |||
89 | |||
90 | * Repeat steps 3-11 for all the images and bin sizes that will be used: |
||
91 | |||
92 | |||
93 | * If <link linkend="Cal_cor_plan">a pixel, a column/row</link> or a <link |
||
94 | linkend="Cal_cor_region">region</link> gives bad values in the bright or dark image |
||
95 | after a few trials, it may be excluded in all corrected images. |
||
96 | |||
97 | |||
98 | |||
99 | |||
100 | |||
101 | |_.Dimension after binning</filename> |
||
102 | </entry> |
||
103 | |<filename moreinfo="none">Bin|_.number of correction channels| |
||
104 | <entry>512|8|1*| |
||
105 | |512 (centered)|1|1| |
||
106 | |||
107 | |||
108 | |||
109 | |||
110 | |||
111 | |_.Dimension after binning</filename> |
||
112 | </entry> |
||
113 | |<filename moreinfo="none">Bin|_.number of correction channels| |
||
114 | <entry>4096|1|1 or 2 if used for tomo preset| |
||
115 | |1024|4|2| |
||
116 | |512|8|2*| |
||
117 | |512 (centered)|1|1| |
||
118 | |||
119 | |||
120 | |||
121 | |||
122 | * Only one channel is required for image shift alignment purpose. If the same camera |
||
123 | configuration is used for presets that involves in correlation, two channels are strongly |
||
124 | recommended. |
||
125 | |||
126 | |||
127 | |||
128 | |||
129 | |||
130 | h2. Image Despike |
||
131 | |||
132 | |||
133 | |||
134 | The Despike feature removes random bright or hot pixels from the acquired images. This |
||
135 | hot pixel is assigned the average intensity of the surrounding area, a circle of the radius |
||
136 | which is entered in Neighborhood Size. The Despike Threshold is the number of standard |
||
137 | deviations away from the mean that qualifies a pixel for despike correction. The despike |
||
138 | affects the flat-field corrected image saved on the disk and can not be recovered. |
||
139 | Therefore, use a minimal neighborhood size to avoid artifact and set the threshold high to |
||
140 | avoid over-dispiking. |
||
141 | |||
142 | |||
143 | |||
144 | |||
145 | |||
146 | h2. Correction Plan |
||
147 | |||
148 | |||
149 | |||
150 | Bad Pixel, Rows and Bad Cols are used to crop portions of the image that do not read |
||
151 | well off of the CCD. The values entered into here are determined empirically for each |
||
152 | instrument that Leginon operates on. If one column or row of the images is incorrect, |
||
153 | measure the location of the row and column that need to be removed from this image. These |
||
154 | values should then be entered as a sequence of values separated by commas by editing the |
||
155 | Plan. Click Save after adjusting. |
||
156 | |||
157 | |||
158 | Individual bad pixel can also be corrected by its surrounding pixels. Choose these |
||
159 | pixels with the selection tool on the image and then click on "Grab From Image". |
||
160 | |||
161 | |||
162 | |||
163 | |||
164 | |||
165 | h2. Find A Single Bad Pixel |
||
166 | |||
167 | |||
168 | |||
169 | When a single pixel is defected, it may not be easy to find it on a large image, even if |
||
170 | it changes the stats dramatically. A tool is available to help finding these pixels: |
||
171 | |||
172 | |||
173 | * Leginon/Correction> Acquire either a corrected image that shows the bad |
||
174 | stats. |
||
175 | |||
176 | |||
177 | * Leginon/Correction/Toolbar> Left-click on the <inlinegraphic |
||
178 | fileref="http://emg.nysbc.org/software/leginon/images/icons/stagelocations.png"/> |
||
179 | button to "Add extreme points to bad pixel list". There |
||
180 | |||
181 | |||
182 | * Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
183 | "+". This adds the selected bad region to the bad pixel plan. |
||
184 | |||
185 | |||
186 | * Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
187 | check if the apearance improves. |
||
188 | |||
189 | |||
190 | |||
191 | |||
192 | |||
193 | |||
194 | |||
195 | h2. Bad Region Correction |
||
196 | |||
197 | |||
198 | |||
199 | When a large region is covered by a fallen chip, image correction through bright/dark |
||
200 | reference may not be sufficient to produce a spike-free image since the bright and dark |
||
201 | values in the region are almost identical. To add such a large region into bad pixel plan, |
||
202 | do the following: |
||
203 | |||
204 | |||
205 | * Leginon/Correction> Acquire either a bright or corrected image that shows the |
||
206 | bad region clearly. |
||
207 | |||
208 | |||
209 | * Leginon/Correction> Use "Regions" target tool next to the image to enclose the |
||
210 | bad region. The corners that the target tool identifies can be larger than the bad |
||
211 | region but should be close to its size so that not too much is corrected. |
||
212 | |||
213 | |||
214 | * Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
215 | "+". This adds the selected bad region to the bad pixel plan. |
||
216 | |||
217 | |||
218 | * Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
219 | check if the apearance improves. |