[920928f] | 1 | .. image_viewer_help.rst |
---|
[379b87a] | 2 | |
---|
[78f02c3] | 3 | .. This is a port of the original SasView html help file to ReSTructured text |
---|
| 4 | .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. |
---|
| 5 | |
---|
[379b87a] | 6 | Image Viewer Tool |
---|
| 7 | ================= |
---|
| 8 | |
---|
[78f02c3] | 9 | Description |
---|
| 10 | ----------- |
---|
| 11 | |
---|
| 12 | This tool loads image files and displays them as 2D (x-y coordinate against |
---|
| 13 | counts per pixel). The plot can then can be saved, printed, and copied. The |
---|
| 14 | plot can also be resized by dragging the corner of the panel. |
---|
| 15 | |
---|
| 16 | Supported image formats are png, bmp, gif, or jpg. (There is currently a bug in |
---|
| 17 | the tif loader) |
---|
| 18 | |
---|
| 19 | .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
---|
| 20 | |
---|
| 21 | How To |
---|
| 22 | ------ |
---|
| 23 | |
---|
| 24 | 1. Select 'Image Viewer' under the 'Tool' menu in the menubar. |
---|
| 25 | |
---|
| 26 | 2. Select a file type from the drop-box at the bottom of the file dialog panel, |
---|
| 27 | choose a file of interest, and then click the 'Open' button (see the |
---|
| 28 | picture below). |
---|
| 29 | |
---|
| 30 | .. image:: load_image.bmp |
---|
| 31 | |
---|
| 32 | 3. If the loading is successful, the image will be displayed. The file name |
---|
| 33 | will be shown in the title bar (see the picture below). |
---|
| 34 | |
---|
| 35 | 4. Some options such as saving, printing, and copying are available from the |
---|
| 36 | menubar, or in the context-menu (by right-clicking anywhere in the plot). |
---|
| 37 | |
---|
| 38 | .. image:: pic_plot.bmp |
---|
| 39 | |
---|
| 40 | 5. If the image is taken from a 2D detector, it can be converted into 2D data |
---|
| 41 | where the z values are computed as |
---|
| 42 | |
---|
| 43 | z = (0.299 x R) + (0.587 x G) + (0.114 x B) |
---|
| 44 | |
---|
| 45 | unless the picture file is formatted as 8-bit grey-scale tif. |
---|
| 46 | |
---|
| 47 | In the "Convert to Data" dialog, set the parameters relevant to your data and |
---|
| 48 | then click the OK button. |
---|
| 49 | |
---|
| 50 | .. image:: pic_convert.bmp |
---|