Project

General

Profile

Bright and Dark reference images » History » Version 6

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