Bright and Dark reference images » History » Version 9
Anchi Cheng, 06/06/2010 08: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 | 6 | Alex Kadokura | * If [[Bright and Dark reference images#Image-Despike|a pixel, a column/row]] or a [[Bright and Dark reference images#Image-Despike|region]] gives bad values in the bright or dark image |
93 | 1 | Amber Herold | after a few trials, it may be excluded in all corrected images. |
94 | |||
95 | 7 | Anchi Cheng | * Only one channel is required for image shift alignment purpose. If the same camera configuration is used for presets that involves in correlation, two channels are strongly recommended. |
96 | 1 | Amber Herold | |
97 | 3 | Anchi Cheng | |*Dimension after binning*|*Bin*|*number of correction channels*| |
98 | 1 | Amber Herold | |4096|1|1 or 2 if used for tomo preset| |
99 | 9 | Anchi Cheng | |1024|4|2^*^| |
100 | |1024(centered)|1|1^**^| |
||
101 | |512|8|2^***^| |
||
102 | |512 (centered)|1|1^***^| |
||
103 | 1 | Amber Herold | |
104 | 9 | Anchi Cheng | ^*^-This camera configuration is used in preset beam shift alignment even if you don't use it for a preset. |
105 | ^**^-This camera configuration is used in Manual Application Manual Focusing even if you don't use it for a preset. |
||
106 | ^***^-These camera configurations are used in preset image shift alignment even if you don't use it for a preset. |
||
107 | 1 | Amber Herold | |
108 | h2. Image Despike |
||
109 | |||
110 | |||
111 | |||
112 | The Despike feature removes random bright or hot pixels from the acquired images. This |
||
113 | hot pixel is assigned the average intensity of the surrounding area, a circle of the radius |
||
114 | which is entered in Neighborhood Size. The Despike Threshold is the number of standard |
||
115 | deviations away from the mean that qualifies a pixel for despike correction. The despike |
||
116 | affects the flat-field corrected image saved on the disk and can not be recovered. |
||
117 | Therefore, use a minimal neighborhood size to avoid artifact and set the threshold high to |
||
118 | avoid over-dispiking. |
||
119 | |||
120 | 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. |
121 | 1 | Amber Herold | |
122 | |||
123 | |||
124 | |||
125 | 3 | Anchi Cheng | |
126 | 1 | Amber Herold | h2. Correction Plan |
127 | |||
128 | |||
129 | |||
130 | Bad Pixel, Rows and Bad Cols are used to crop portions of the image that do not read |
||
131 | well off of the CCD. The values entered into here are determined empirically for each |
||
132 | instrument that Leginon operates on. If one column or row of the images is incorrect, |
||
133 | measure the location of the row and column that need to be removed from this image. These |
||
134 | values should then be entered as a sequence of values separated by commas by editing the |
||
135 | Plan. Click Save after adjusting. |
||
136 | |||
137 | |||
138 | Individual bad pixel can also be corrected by its surrounding pixels. Choose these |
||
139 | pixels with the selection tool on the image and then click on "Grab From Image". |
||
140 | |||
141 | |||
142 | |||
143 | |||
144 | |||
145 | h2. Find A Single Bad Pixel |
||
146 | |||
147 | |||
148 | |||
149 | When a single pixel is defected, it may not be easy to find it on a large image, even if |
||
150 | it changes the stats dramatically. A tool is available to help finding these pixels: |
||
151 | |||
152 | |||
153 | * Leginon/Correction> Acquire either a corrected image that shows the bad |
||
154 | stats. |
||
155 | |||
156 | |||
157 | 3 | Anchi Cheng | * Leginon/Correction/Toolbar> Left-click on the !http://emg.nysbc.org/software/leginon/images/icons/stagelocations.png! |
158 | 1 | Amber Herold | button to "Add extreme points to bad pixel list". There |
159 | |||
160 | |||
161 | * Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
162 | "+". This adds the selected bad region to the bad pixel plan. |
||
163 | |||
164 | |||
165 | * Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
166 | check if the apearance improves. |
||
167 | |||
168 | |||
169 | |||
170 | |||
171 | |||
172 | |||
173 | |||
174 | h2. Bad Region Correction |
||
175 | |||
176 | |||
177 | |||
178 | When a large region is covered by a fallen chip, image correction through bright/dark |
||
179 | reference may not be sufficient to produce a spike-free image since the bright and dark |
||
180 | values in the region are almost identical. To add such a large region into bad pixel plan, |
||
181 | do the following: |
||
182 | |||
183 | |||
184 | * Leginon/Correction> Acquire either a bright or corrected image that shows the |
||
185 | bad region clearly. |
||
186 | |||
187 | |||
188 | * Leginon/Correction> Use "Regions" target tool next to the image to enclose the |
||
189 | bad region. The corners that the target tool identifies can be larger than the bad |
||
190 | region but should be close to its size so that not too much is corrected. |
||
191 | |||
192 | |||
193 | * Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
194 | "+". This adds the selected bad region to the bad pixel plan. |
||
195 | |||
196 | |||
197 | * Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
198 | check if the apearance improves. |
||
199 | 2 | Amber Herold | |
200 | ______ |
||
201 | |||
202 | [[Pixel Size Calibration|< Pixel Size Calibration]] | [[Image Shift matrix calibration|Image Shift matrix calibration >]] |
||
203 | |||
204 | ______ |