Bright and Dark reference images » History » Version 4
Alex Kadokura, 05/28/2010 01:15 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 | 3 | Anchi Cheng | * Leginon/Correction/Settings> It is recommended to use 2 correction channels for the camera configuration used |
64 | 1 | Amber Herold | for correlation peak search. |
65 | |||
66 | |||
67 | * Leginon/Correction/Settings> Click OK to exit settings. |
||
68 | |||
69 | |||
70 | * Leginon/Correction/Toolbar> Select "Raw image " from the pull down list of |
||
71 | acquisition modes and then click on "Acquire" button next to the selector to view an |
||
72 | image that is not corrected. |
||
73 | |||
74 | |||
75 | * Leginon/Correction/Toolbar> Select "Dark reference" in the acquisition mode |
||
76 | selector and then click "Acquire" to acquire the Dark reference image for this |
||
77 | particular camera configuration. |
||
78 | |||
79 | |||
80 | * Leginon/Correction/Toolbar> Select "Bright reference" and repeat the acquisition |
||
81 | to obtain the Bright reference. |
||
82 | |||
83 | |||
84 | * Leginon/Correction/Toolbar> Select "Corrected image" and then "Acquire" to view |
||
85 | the corrected image. A corrected image should be free of artifacts and have smaller |
||
86 | standard deviation than the raw image, in general. |
||
87 | |||
88 | |||
89 | * Repeat steps 3-11 for all the images and bin sizes that will be used: |
||
90 | |||
91 | |||
92 | 4 | Alex Kadokura | * If [[Bright and Dark reference images#Image Despike|a pixel, a column/row]] or a <link |
93 | 1 | Amber Herold | linkend="Cal_cor_region">region</link> gives bad values in the bright or dark image |
94 | after a few trials, it may be excluded in all corrected images. |
||
95 | |||
96 | |||
97 | |||
98 | |||
99 | |||
100 | 3 | Anchi Cheng | |*Dimension after binning*|*Bin*|*number of correction channels*| |
101 | |512|8|1*| |
||
102 | 1 | Amber Herold | |512 (centered)|1|1| |
103 | |||
104 | |||
105 | |||
106 | |||
107 | |||
108 | 3 | Anchi Cheng | |*Dimension after binning*|*Bin*|*number of correction channels*| |
109 | |4096|1|1 or 2 if used for tomo preset| |
||
110 | 1 | Amber Herold | |1024|4|2| |
111 | |512|8|2*| |
||
112 | |512 (centered)|1|1| |
||
113 | |||
114 | |||
115 | |||
116 | |||
117 | * Only one channel is required for image shift alignment purpose. If the same camera |
||
118 | configuration is used for presets that involves in correlation, two channels are strongly |
||
119 | recommended. |
||
120 | |||
121 | |||
122 | |||
123 | |||
124 | |||
125 | h2. Image Despike |
||
126 | |||
127 | |||
128 | |||
129 | The Despike feature removes random bright or hot pixels from the acquired images. This |
||
130 | hot pixel is assigned the average intensity of the surrounding area, a circle of the radius |
||
131 | which is entered in Neighborhood Size. The Despike Threshold is the number of standard |
||
132 | deviations away from the mean that qualifies a pixel for despike correction. The despike |
||
133 | affects the flat-field corrected image saved on the disk and can not be recovered. |
||
134 | Therefore, use a minimal neighborhood size to avoid artifact and set the threshold high to |
||
135 | avoid over-dispiking. |
||
136 | |||
137 | 3 | Anchi Cheng | Activation of this feature and its parameter settings are defined when in the pop-up dialog for "Edit Correction Plan". See below. |
138 | 1 | Amber Herold | |
139 | |||
140 | |||
141 | |||
142 | 3 | Anchi Cheng | |
143 | 1 | Amber Herold | h2. Correction Plan |
144 | |||
145 | |||
146 | |||
147 | Bad Pixel, Rows and Bad Cols are used to crop portions of the image that do not read |
||
148 | well off of the CCD. The values entered into here are determined empirically for each |
||
149 | instrument that Leginon operates on. If one column or row of the images is incorrect, |
||
150 | measure the location of the row and column that need to be removed from this image. These |
||
151 | values should then be entered as a sequence of values separated by commas by editing the |
||
152 | Plan. Click Save after adjusting. |
||
153 | |||
154 | |||
155 | Individual bad pixel can also be corrected by its surrounding pixels. Choose these |
||
156 | pixels with the selection tool on the image and then click on "Grab From Image". |
||
157 | |||
158 | |||
159 | |||
160 | |||
161 | |||
162 | h2. Find A Single Bad Pixel |
||
163 | |||
164 | |||
165 | |||
166 | When a single pixel is defected, it may not be easy to find it on a large image, even if |
||
167 | it changes the stats dramatically. A tool is available to help finding these pixels: |
||
168 | |||
169 | |||
170 | * Leginon/Correction> Acquire either a corrected image that shows the bad |
||
171 | stats. |
||
172 | |||
173 | |||
174 | 3 | Anchi Cheng | * Leginon/Correction/Toolbar> Left-click on the !http://emg.nysbc.org/software/leginon/images/icons/stagelocations.png! |
175 | 1 | Amber Herold | button to "Add extreme points to bad pixel list". There |
176 | |||
177 | |||
178 | * Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
179 | "+". This adds the selected bad region to the bad pixel plan. |
||
180 | |||
181 | |||
182 | * Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
183 | check if the apearance improves. |
||
184 | |||
185 | |||
186 | |||
187 | |||
188 | |||
189 | |||
190 | |||
191 | h2. Bad Region Correction |
||
192 | |||
193 | |||
194 | |||
195 | When a large region is covered by a fallen chip, image correction through bright/dark |
||
196 | reference may not be sufficient to produce a spike-free image since the bright and dark |
||
197 | values in the region are almost identical. To add such a large region into bad pixel plan, |
||
198 | do the following: |
||
199 | |||
200 | |||
201 | * Leginon/Correction> Acquire either a bright or corrected image that shows the |
||
202 | bad region clearly. |
||
203 | |||
204 | |||
205 | * Leginon/Correction> Use "Regions" target tool next to the image to enclose the |
||
206 | bad region. The corners that the target tool identifies can be larger than the bad |
||
207 | region but should be close to its size so that not too much is corrected. |
||
208 | |||
209 | |||
210 | * Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
211 | "+". This adds the selected bad region to the bad pixel plan. |
||
212 | |||
213 | |||
214 | * Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
215 | check if the apearance improves. |
||
216 | 2 | Amber Herold | |
217 | ______ |
||
218 | |||
219 | [[Pixel Size Calibration|< Pixel Size Calibration]] | [[Image Shift matrix calibration|Image Shift matrix calibration >]] |
||
220 | |||
221 | ______ |