Bright and Dark reference images » History » Version 12
Amber Herold, 06/24/2010 12:20 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 | 12 | Amber Herold | # scope> make sure that the CCD will be acquiring images in an area with uniform |
36 | 1 | Amber Herold | 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 | 12 | Amber Herold | |
40 | # Leginon/Node Selector> Select "Correction" node. |
||
41 | |
||
42 | # Leginon/Correction/Toolbar> Open "Settings" window. |
||
43 | |
||
44 | # Leginon/Correction/Toolbar/Settings> Select one of the Common Camera |
||
45 | 1 | Amber Herold | Configuration or select Custom mode and enter your own values based on the presets you |
46 | created. |
||
47 | 12 | Amber Herold | |
48 | # Leginon/Correction/Settings/Camera Configuration> Enter the Exposure time. It |
||
49 | 1 | Amber Herold | should be chosen so that the image is not saturated and ideally close to the condition |
50 | that will be used in the experiments. If unsure about the experimental condition, use an |
||
51 | exposure time that gives high but not saturated counts. |
||
52 | 12 | Amber Herold | |
53 | # Leginon/Correction/Settings>By default, the corrector node is set to average 3 |
||
54 | 1 | Amber Herold | images together to create one reference image and to despike the hot pixels with |
55 | averaged neighbor hood values. These can be changed if desired. |
||
56 | 12 | Amber Herold | |
57 | # Leginon/Correction/Settings> It is recommended to use 2 [[Bright and Dark reference images#Correction-Channels|correction channels]] for the camera configuration used |
||
58 | 1 | Amber Herold | for correlation peak search. |
59 | 12 | Amber Herold | |
60 | # Leginon/Correction/Settings> Click OK to exit settings. |
||
61 | |
||
62 | # Leginon/Correction/Toolbar> Select "Raw image " from the pull down list of |
||
63 | 1 | Amber Herold | acquisition modes and then click on "Acquire" button next to the selector to view an |
64 | image that is not corrected. |
||
65 | 12 | Amber Herold | |
66 | # Leginon/Correction/Toolbar> Select "Dark reference" in the acquisition mode |
||
67 | 1 | Amber Herold | selector and then click "Acquire" to acquire the Dark reference image for this |
68 | particular camera configuration. |
||
69 | 12 | Amber Herold | |
70 | # Leginon/Correction/Toolbar> Select "Bright reference" and repeat the acquisition |
||
71 | 1 | Amber Herold | to obtain the Bright reference. |
72 | 12 | Amber Herold | |
73 | # Leginon/Correction/Toolbar> Select "Corrected image" and then "Acquire" to view |
||
74 | 1 | Amber Herold | the corrected image. A corrected image should be free of artifacts and have smaller |
75 | standard deviation than the raw image, in general. |
||
76 | 12 | Amber Herold | |
77 | # Repeat steps 3-11 for all the images and bin sizes that will be used: |
||
78 | |
||
79 | # 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 |
||
80 | 1 | Amber Herold | after a few trials, it may be excluded in all corrected images. |
81 | 12 | Amber Herold | |
82 | # 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. |
||
83 | 1 | Amber Herold | |
84 | 12 | Amber Herold | *Bright/Dark Reference Image Need for the Example MSI:* |
85 | 11 | Amber Herold | |
86 | 3 | Anchi Cheng | |*Dimension after binning*|*Bin*|*number of correction channels*| |
87 | 1 | Amber Herold | |4096|1|1 or 2 if used for tomo preset| |
88 | 9 | Anchi Cheng | |1024|4|2^*^| |
89 | |1024(centered)|1|1^**^| |
||
90 | |512|8|2^***^| |
||
91 | |512 (centered)|1|1^***^| |
||
92 | 1 | Amber Herold | |
93 | 9 | Anchi Cheng | ^*^-This camera configuration is used in preset beam shift alignment even if you don't use it for a preset. |
94 | ^**^-This camera configuration is used in Manual Application Manual Focusing even if you don't use it for a preset. |
||
95 | ^***^-These camera configurations are used in preset image shift alignment even if you don't use it for a preset. |
||
96 | 1 | Amber Herold | |
97 | h2. Image Despike |
||
98 | |||
99 | |||
100 | |||
101 | The Despike feature removes random bright or hot pixels from the acquired images. This |
||
102 | hot pixel is assigned the average intensity of the surrounding area, a circle of the radius |
||
103 | which is entered in Neighborhood Size. The Despike Threshold is the number of standard |
||
104 | deviations away from the mean that qualifies a pixel for despike correction. The despike |
||
105 | affects the flat-field corrected image saved on the disk and can not be recovered. |
||
106 | Therefore, use a minimal neighborhood size to avoid artifact and set the threshold high to |
||
107 | avoid over-despiking. |
||
108 | |||
109 | Activation of this feature and its parameter settings are defined when in the pop-up dialog for "Edit Correction Plan". See below. |
||
110 | |||
111 | |||
112 | |||
113 | |||
114 | 3 | Anchi Cheng | |
115 | 1 | Amber Herold | h2. Correction Plan |
116 | |||
117 | |||
118 | |||
119 | Bad Pixel, Rows and Bad Cols are used to crop portions of the image that do not read |
||
120 | well off of the CCD. The values entered into here are determined empirically for each |
||
121 | instrument that Leginon operates on. If one column or row of the images is incorrect, |
||
122 | measure the location of the row and column that need to be removed from this image. These |
||
123 | values should then be entered as a sequence of values separated by commas by editing the |
||
124 | Plan. Click Save after adjusting. |
||
125 | |||
126 | |||
127 | Individual bad pixel can also be corrected by its surrounding pixels. Choose these |
||
128 | pixels with the selection tool on the image and then click on "Grab From Image". |
||
129 | |||
130 | |||
131 | |||
132 | |||
133 | |||
134 | h2. Find A Single Bad Pixel |
||
135 | 3 | Anchi Cheng | |
136 | 1 | Amber Herold | |
137 | |||
138 | When a single pixel is defected, it may not be easy to find it on a large image, even if |
||
139 | it changes the stats dramatically. A tool is available to help finding these pixels: |
||
140 | |||
141 | |||
142 | 12 | Amber Herold | # Leginon/Correction> Acquire either a corrected image that shows the bad |
143 | 1 | Amber Herold | stats. |
144 | 12 | Amber Herold | |
145 | # Leginon/Correction/Toolbar> Left-click on the !http://emg.nysbc.org/software/leginon/images/icons/stagelocations.png! |
||
146 | 1 | Amber Herold | button to "Add extreme points to bad pixel list". There |
147 | 12 | Amber Herold | |
148 | # Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
149 | 1 | Amber Herold | "+". This adds the selected bad region to the bad pixel plan. |
150 | 12 | Amber Herold | |
151 | # Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
152 | 1 | Amber Herold | check if the apearance improves. |
153 | |||
154 | |||
155 | h2. Bad Region Correction |
||
156 | |||
157 | |||
158 | |||
159 | When a large region is covered by a fallen chip, image correction through bright/dark |
||
160 | reference may not be sufficient to produce a spike-free image since the bright and dark |
||
161 | values in the region are almost identical. To add such a large region into bad pixel plan, |
||
162 | do the following: |
||
163 | |||
164 | |||
165 | 12 | Amber Herold | # Leginon/Correction> Acquire either a bright or corrected image that shows the |
166 | 1 | Amber Herold | bad region clearly. |
167 | 12 | Amber Herold | |
168 | # Leginon/Correction> Use "Regions" target tool next to the image to enclose the |
||
169 | 1 | Amber Herold | bad region. The corners that the target tool identifies can be larger than the bad |
170 | region but should be close to its size so that not too much is corrected. |
||
171 | 12 | Amber Herold | |
172 | # Leginon/Correction/Tools> Left-click on the "Add Region" tool that looks like |
||
173 | 1 | Amber Herold | "+". This adds the selected bad region to the bad pixel plan. |
174 | 12 | Amber Herold | |
175 | # Leginon/Corrections> Acquire a corrected image in the same configuration to |
||
176 | 10 | Amber Herold | check if the appearance improves. |
177 | 2 | Amber Herold | |
178 | ______ |
||
179 | |||
180 | [[Pixel Size Calibration|< Pixel Size Calibration]] | [[Image Shift matrix calibration|Image Shift matrix calibration >]] |
||
181 | |||
182 | ______ |