Data Viewer
Introduction
The Data Viewer can display a single real or reciprocal space image with adjustable contrast. In the status bar the magnification and the last clicked pixel are displayed. Phases in reciprocal space images can be visualised using the phase color mode. The data viewer can be created and also be controlled via the Python/C++ interface. Extension of the data viewer is possible using additional overlays.
Components
Main panel
The main panel shows the image either in Real space or Fourier space. The phase colour display mode can be activated using the popup menu.
Mouse and Keyboard Controls
Mouse
| Left Button | Draw Selection |
| Middle Button | Move Selection |
| Right Button | Move Image, Display popup menu |
| Wheel | Zoom in and out |
Keyboard
| N | Renormalize |
| C | Center |
| I | Invert |
| P | Toggle Phasecolor mode |
| V | Show/Hide Pixel Values |
| S | Toggle Selection Mode |
| R | Show/Hide Ruler |
| +,L | Zoom in |
| -,K | Zoom out |
| Z | Next Slab |
| X | Previous Slab |
| <Shift> | Update Zoom and Live FFT panel |
| <Control> | Modify Overlay |
Zoom panel
The zoom panel shows a zoomed version of the image centered at the mouse position.
Mouse and Keyboard Controls
Mouse
| Left Button | Draw Selection |
| Middle Button | Move Selection |
| Right Button | Display popup menu |
| Wheel | Zoom in and out |
Keyboard
| N | Renormalize |
| I | Invert |
| P | Toggle Phasecolor mode |
| V | Show/Hide Pixel Values |
| S | Toggle Selection Mode |
| +,L | Zoom in |
| -,K | Zoom out |
Live FFT panel
The live FFT panel show a live FFT of the area centered at the current mouse position. The size of the Fourier transformed area can be adjusted using the popup menu.
Mouse and Keyboard Controls
Mouse
| Left Button | Draw Selection |
| Middle Button | Move Selection |
| Right Button | Move Image, Display popup menu |
| Wheel | Zoom in and out |
Keyboard
| N | Renormalize |
| C | Center |
| I | Invert |
| P | Toggle Phasecolor mode |
| V | Show/Hide Pixel Values |
| S | Toggle Selection Mode |
| +,L | Zoom in |
| -,K | Zoom out |
Argand panel
The argand panel shows an argand diagram of the selected pixels.
Info panel
The Info panel shows the x an y coordinates and the value of the last clicked pixel and the pixel at the current mouse position. In addition the extent of the selection box is displayed.
Mouse Controls
| Right Button | Display popup menu |
Python/C++ interface
The data viewer can be created and also be controlled via a Python/C++ interface. Following python code loads an image and creates a new viewer for it.
im=LoadImage("...") v=Viewer(i)
The viewer instance v provides following methods:
- AddMark
- AddOverlay
- ClearAllMarks
- GetNormalizer
- GetOverlayManager
- GetSelection
- Renormalize
- SetAutoNormalize
- SetData
- SetName
Examples
real space image
Data viewer showing a real space image. The panels on the right show a zoomed version of the image and a live FFT.
reciprocal space image
Data viewer showing a Fourier space image. On the right side the info, argand and zoom panel are displayed. The display of the zoom panel is switched to phase color mode. The ardand panel shows the argand diagram of the selected pixels (yellow selection box).
Back to gui
Attachments
- DataViewer_Spatial.png (161.7 kB) - added by andreas on 05/31/07 10:56:57.
- DataViewer_Frequency.png (136.1 kB) - added by andreas on 05/31/07 10:57:07.


