@@ -11,7 +11,7 @@ IMAGE TOOL
11
11
The *ImageTool * window is the second control window which provides various image-related
12
12
information and controls.
13
13
14
- .. image :: images/ImageTool.png
14
+ .. image :: images/image_tool.jpg
15
15
:width: 800
16
16
17
17
Image control
@@ -26,13 +26,28 @@ Image control
26
26
| ``Update automatically `` | Automatically update the current displayed image in the |
27
27
| | *ImageTool * window. |
28
28
+----------------------------+--------------------------------------------------------------------+
29
+ | ``Moving average `` | Apply moving average to the image data. It affects both the |
30
+ | | individual images in a train and the averaged image, as well as |
31
+ | | the subsequent analysis. If a new window size is smaller than |
32
+ | | the old one, the moving average calculation will start from the |
33
+ | | scratch. |
34
+ +----------------------------+--------------------------------------------------------------------+
29
35
| ``Auto level `` | Update the detector images (not only in the *ImageTool * window, |
30
36
| | but also in other plot windows) by automatically selecting levels |
31
37
| | based on the maximum and minimum values in the data. |
32
38
+----------------------------+--------------------------------------------------------------------+
33
39
| ``Save image `` | Save the current image to file. Please also see ImageFileFormat _ |
34
40
+----------------------------+--------------------------------------------------------------------+
35
41
42
+ .. Warning ::
43
+
44
+ The moving average here is not calculated by nanmean _, which means that if a pixel of the image
45
+ in a certain pulse is *NaN *, the moving average of that pixel will be *NaN * for that pulse.
46
+
47
+ .. Warning ::
48
+
49
+ Please be aware that there is another moving average setup in the :ref: `Global setup ` in the
50
+ main GUI.
36
51
37
52
Mask panel
38
53
""""""""""
@@ -173,6 +188,8 @@ Gain / offset
173
188
174
189
.. _nanmean : https://docs.scipy.org/doc/numpy/reference/generated/numpy.nanmean.html
175
190
191
+ .. image :: images/gain_offset_correction.jpg
192
+
176
193
Apply pixel-wised gain and offset correction, where
177
194
178
195
.. math ::
@@ -183,26 +200,45 @@ Users can record a "dark run" whenever data is available. The dark run consists
183
200
of trains. The moving average of the each "dark pulse" in the train will be calculated,
184
201
which will then be used to apply dark subtraction to image data pulse-by-pulse.
185
202
186
- +----------------------------+--------------------------------------------------------------------+
187
- | Input | Description |
188
- +============================+====================================================================+
189
- | ``Gain correction `` | Check to activate gain correction. |
190
- +----------------------------+--------------------------------------------------------------------+
191
- | ``Offset correction `` | Check to activate offset correction. |
192
- +----------------------------+--------------------------------------------------------------------+
193
- | ``Use dark as offset `` | Check to use recorded dark images as offset. The already loaded |
194
- | | offset constants will be ignored. |
195
- +----------------------------+--------------------------------------------------------------------+
196
- | ``Record dark `` | Start and stop dark run recording. |
197
- +----------------------------+--------------------------------------------------------------------+
198
- | ``Remove dark `` | Remove the recorded dark run. |
199
- +----------------------------+--------------------------------------------------------------------+
200
-
201
- .. Note ::
203
+ +-----------------------------+--------------------------------------------------------------------+
204
+ | Input | Description |
205
+ +=============================+====================================================================+
206
+ | ``Apply gain correction `` | Check to activate gain correction. |
207
+ +-----------------------------+--------------------------------------------------------------------+
208
+ | ``Apply offset correction `` | Check to activate offset correction. Since version 1.10, a |
209
+ | | variation of offset correction has been introduced: |
210
+ | | |
211
+ | | - ``+intra-dark ``: |
212
+ | | |
213
+ | | After the pulse-by-pulse offset correction, every other pulse |
214
+ | | will be subtracted by the following one starting from the |
215
+ | | first pulse. For instance, imaging a pulse train consisting of |
216
+ | | four pulses *ABAB *, the extra intra-dark correction will |
217
+ | | result in a train *A'BA'B *, where *A' * = *A * - *B *. |
218
+ | | Then one can make use of the pulse slicer in the |
219
+ | | :ref: `Data source tree ` to remove the intra-dark pulses. |
220
+ +-----------------------------+--------------------------------------------------------------------+
221
+ | ``Use dark as offset `` | Check to use recorded dark images as offset. The already loaded |
222
+ | | offset constants will be ignored. |
223
+ +-----------------------------+--------------------------------------------------------------------+
224
+ | ``Record dark `` | Start and stop dark run recording. |
225
+ +-----------------------------+--------------------------------------------------------------------+
226
+ | ``Remove dark `` | Remove the recorded dark run. |
227
+ +-----------------------------+--------------------------------------------------------------------+
228
+
229
+ .. Warning ::
202
230
203
231
The moving average here is not calculated by nanmean _, which means that if a pixel of the image
204
232
in a certain pulse is *NaN *, the moving average of that pixel will be *NaN * for that pulse.
205
233
234
+ .. Note ::
235
+
236
+ Some detectors have its own special treatment for gain/offset correction:
237
+
238
+ - DSSC:
239
+
240
+ Due to the readout issue, pixels with value 0 will be converted to 256.
241
+
206
242
207
243
Reference image
208
244
---------------
0 commit comments