Project

General

Profile

Bright and Dark reference images » History » Version 22

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