Project

General

Profile

Bright and Dark reference images » History » Version 11

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