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