Project

General

Profile

Bright and Dark reference images » History » Version 24

Anchi Cheng, 01/21/2016 09:31 PM

1 1 Amber Herold
h1. Bright and Dark reference images
2
3 24 Anchi Cheng
h2. Note: FEI Falcon and Ceta camera can not use references acquired through Leginon.  See [[Falcon gain correction]] and [[Ceta camera support]], respectively.
4 1 Amber Herold
5
Bright and Dark reference images need to be acquired for every camera setting that will
6
be used. The camera settings include image dimension, bin size, and offset. Over time,
7
references may need to be repeatedly acquired.
8
9
10 21 Anchi Cheng
h2. Where are the reference images?
11
12
{{include(reference session)}}
13 1 Amber Herold
14
h2. Correction Channels
15
16
17
18
When two flat-field-corrected images are correlated, there is often an origin peak
19
derived from the common normalization image even if both image acquisition contains only
20
noise. In order to avoid this problem, two or more sets of bright/dark references, and hence
21 18 Anchi Cheng
normalization images can be obtained per camera configuration. When a correlation
22 13 Anchi Cheng
between two images are done, Leginon will check the channel of the correction the first
23 1 Amber Herold
acquired image has used and then force the new image to be corrected by a different
24
channel.
25
26 13 Anchi Cheng
We recommend that you always acquire reference images on both channels.
27 1 Amber Herold
28
h2. Acquire reference images
29
30
31
32 13 Anchi Cheng
#  scope> make sure that the digital camera will be acquiring images in an area with uniform
33 1 Amber Herold
beam intensity such as an empty area with no specimen nor support. You may skip a trip
34
to the scope room by sending one of the high mag preset to the scope from
35
Leginon.
36 12 Amber Herold
 
37
#  Leginon/Node Selector> Select "Correction" node.
38
 
39
#  Leginon/Correction/Toolbar> Open "Settings" window.
40
 
41
#  Leginon/Correction/Toolbar/Settings> Select one of the Common Camera
42 1 Amber Herold
Configuration or select Custom mode and enter your own values based on the presets you
43
created.
44 12 Amber Herold
 
45
#  Leginon/Correction/Settings/Camera Configuration> Enter the Exposure time. It
46 1 Amber Herold
should be chosen so that the image is not saturated and ideally close to the condition
47
that will be used in the experiments. If unsure about the experimental condition, use an
48
exposure time that gives high but not saturated counts.
49
 
50
#  Leginon/Correction/Settings>By default, the corrector node is set to average 3
51
images together to create one reference image and to despike the hot pixels with
52
averaged neighbor hood values. These can be changed if desired.
53 12 Amber Herold
 
54 1 Amber Herold
#  Leginon/Correction/Settings> Click OK to exit settings.
55
 
56 13 Anchi Cheng
#  Leginon/Correction/Toolbar> Select "Channel 0" in the channel number
57
selector so that the next step will acquire only one image.
58
 
59 1 Amber Herold
#  Leginon/Correction/Toolbar> Select "Raw image " from the pull down list of
60
acquisition modes and then click on "Acquire" button next to the selector to view an
61
image that is not corrected.
62 12 Amber Herold
 
63 13 Anchi Cheng
#  Leginon/Correction/Toolbar> Select "Both Channels" in the channel number
64
selector so that the next steps will acquire images for both correction channels.
65
 
66 1 Amber Herold
#  Leginon/Correction/Toolbar> Select "Dark reference" in the acquisition mode
67
selector and then click "Acquire" to acquire the Dark reference image for this
68 12 Amber Herold
particular camera configuration.
69
 
70 1 Amber Herold
#  Leginon/Correction/Toolbar> Select "Bright reference" and repeat the acquisition
71
to obtain the Bright reference.
72 13 Anchi Cheng
 
73
#  Leginon/Correction/Toolbar> Select "Channel 0" in the channel number
74
selector so that the next step will acquire only one image.
75 12 Amber Herold
 
76
#  Leginon/Correction/Toolbar> Select "Corrected image" and then "Acquire" to view
77 1 Amber Herold
the corrected image. A corrected image should be free of artifacts and have smaller
78
standard deviation than the raw image, in general.
79 12 Amber Herold
 
80 14 Anchi Cheng
#  Repeat steps 3-14 for all the images and bin sizes that will be used:
81 12 Amber Herold
 
82
#  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
83 1 Amber Herold
after a few trials, it may be excluded in all corrected images.
84 12 Amber Herold
 
85 14 Anchi Cheng
*Bright/Dark Reference Image Need for the Example MSI with 4kx4k camera:*
86 11 Amber Herold
87 17 Anchi Cheng
|*Dimension after binning*|*Bin*|*number of correction channels*|*Notes*|
88
|4096|1|1 or 2 if used for tomo preset| |
89
|1024|4|2|_(1)_|
90
|1024(centered)|1|1|_(2)_|
91 18 Anchi Cheng
|512|8|2|_(3)_|
92
|512 (centered)|1|1|_(3)_|
93 17 Anchi Cheng
94 18 Anchi Cheng
_(1)_-This camera configuration is used in preset beam shift alignment even if you don't use it for a preset.
95
_(2)_-This camera configuration is used in Manual Application Manual Focusing even if you don't use it for a preset.
96
_(3)_-These camera configurations are used in preset image shift alignment even if you don't use it for a preset.
97 16 Anchi Cheng
98 18 Anchi Cheng
99 1 Amber Herold
h2. Image Despike
100
101
102
103
The Despike feature removes random bright or hot pixels from the acquired images. This
104
hot pixel is assigned the average intensity of the surrounding area, a circle of the radius
105
which is entered in Neighborhood Size. The Despike Threshold is the number of standard
106
deviations away from the mean that qualifies a pixel for despike correction. The despike
107
affects the flat-field corrected image saved on the disk and can not be recovered.
108
Therefore, use a minimal neighborhood size to avoid artifact and set the threshold high to
109
avoid over-despiking.
110
111
Activation of this feature and its parameter settings are defined when in the pop-up dialog for "Edit Correction Plan".  See below.
112
113
114
115
116 3 Anchi Cheng
117 1 Amber Herold
h2. Correction Plan
118
119 19 Anchi Cheng
!correction_plan.png!
120 1 Amber Herold
121 22 Anchi Cheng
Bad Pixel, Rows and Bad Cols are used to ignore portions of the image that do not read well off of the digital camera. The values entered into here are determined empirically for each instrument and camera configuration that Leginon operates on. If one column or row of the images is incorrect, it may look like this when displayed:
122
!bad_row.png!
123
and like this in power spectrum display
124
!bad_power.png!
125
126
Measure the location of the row and column that need to be removed from this image. These values should then be entered as a sequence of values separated by commas by editing the
127 1 Amber Herold
Plan. Click Save after adjusting.
128
129
130
Individual bad pixel can also be corrected by its surrounding pixels. Choose these
131
pixels with the selection tool on the image and then click on "Grab From Image".
132
133
134
135
136
137 14 Anchi Cheng
138 1 Amber Herold
h2. Find A Single Bad Pixel
139 3 Anchi Cheng
140 1 Amber Herold
141
142
When a single pixel is defected, it may not be easy to find it on a large image, even if
143
it changes the stats dramatically. A tool is available to help finding these pixels:
144
145
146 12 Amber Herold
#  Leginon/Correction> Acquire either a corrected image that shows the bad
147 1 Amber Herold
stats.
148 12 Amber Herold
 
149
#  Leginon/Correction/Toolbar> Left-click on the !http://emg.nysbc.org/software/leginon/images/icons/stagelocations.png!
150 1 Amber Herold
button to "Add extreme points to bad pixel list". There
151 12 Amber Herold
 
152
#  Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like
153 1 Amber Herold
"+". This adds the selected bad region to the bad pixel plan.
154 12 Amber Herold
 
155
#  Leginon/Corrections> Acquire a corrected image in the same configuration to
156 1 Amber Herold
check if the apearance improves.
157
158
159
h2. Bad Region Correction
160
161 14 Anchi Cheng
Note: Bad region correction are corrected pixel-by-pixel.  This can be *computational intensive* if a large region is included.  If flat-field correction alone gives reasonable result, you should minimize usage of the this function. 
162 1 Amber Herold
163
164 14 Anchi Cheng
When a large region is covered by a fallen chip, image correction through bright/dark reference may not be sufficient to produce a spike-free image since the bright and dark values in the region are almost identical. To add such a large region into bad pixel plan, do the following:
165 1 Amber Herold
166
167 12 Amber Herold
#  Leginon/Correction> Acquire either a bright or corrected image that shows the
168 1 Amber Herold
bad region clearly.
169 12 Amber Herold
 
170
#  Leginon/Correction> Use "Regions" target tool next to the image to enclose the
171 1 Amber Herold
bad region. The corners that the target tool identifies can be larger than the bad
172
region but should be close to its size so that not too much is corrected.
173 12 Amber Herold
 
174
#  Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like
175 1 Amber Herold
"+". This adds the selected bad region to the bad pixel plan.
176 12 Amber Herold
 
177
#  Leginon/Corrections> Acquire a corrected image in the same configuration to
178 10 Amber Herold
check if the appearance improves.
179 2 Amber Herold
180
______
181
182 23 Anchi Cheng
[[Pixel Size Calibration|< Pixel Size Calibration]] | [[Image Shift matrix calibration|FEI scopes: Image Shift matrix calibration >]]
183
[[Pixel Size Calibration|< Pixel Size Calibration]] | [[Using image shift matrix calibration to refine image shift scale in jeol.cfg|JEOL scopes: Image shift matrix calibration and jeol.cfg refinement >]]
184 2 Amber Herold
185
______