The Huygens Twin Slicer (Advanced) Tutorial
This article is a tutorial on how to use the multiple capabilities in the new Huygens Twin Slicer viewer, available since Huygens 3.3.
This tutorial explains the Advanced mode of operation, that you can enable at the top menu Mode > Advanced. For Basic mode, see 'Twin Slicer Basic Tutorial'.
Table of contents
Viewing a single image
To launch the Huygens Twin Slicer, select an image and choose 'Twin Slicer' from the 'Visualization' menu in the main menu. To view another image in an existing slicer, click the image name in the drop-down menu above the displayed slice.
The 'View' menu
Use the view menu to show or hide image properties and guides. These are:- Pointer coordinates. The position of the mouse pointer in microns or in voxel coordinates.
- Time. The time for the current slice in seconds or frame numbers.
- Intensity values. The intensity values for all channels on the current pointer location.
- Zoom. The zoom value in screen-pixels per micron. A magnification factor is displayed as well; using the pixel density for your monitor, this value gives an estimation for the absolute magnification.
- Rotation angles. The tilt and twist angles in degrees.
- Slice boundaries. Draws the slice boundaries for the left image in the right one and vice versa. This is helpful when both slicers are used.
- Wireframe box. Show or hide the wireframe box, which shows the data volume (red), the cutting plane (green), and the displayed slice (gray).
Panning
Click and hold the right mouse button on the slice to move it around. Clicking the Center (
) button or pressing 'c' centers the slice.Slicing
Drag the slider beneath the displayed slice to move the cutting plane back and forth. This can also be achieved using the buttons adjacent to the slider (
and
), the up/down arrow keys on the keyboard, or by placing the mouse pointer over the slider and using the scroll wheel. The play button moves the cutting plane through the data volume. The pointer coordinates can be displayed through the 'View' menu.Note that it is possible to move the cutting plane out of the volume. Pressing the Center button (
) or the 'c' key centers the plane again.Changing time frames
Click the 'Time frame' tab key at the bottom to view the time frame panel. Drag the slider to change the time frame or press the play button to animate the time series. The time frame can be displayed through the 'View' menu.
Zooming
Use the scroll wheel to zoom in or out on the location of the mouse pointer. Click the 'Zoom' tab key at the bottom to view the zoom panel. The four buttons respectively zoom out, zoom in, zoom 1:1 (the x-sample distance matches 1 pixel), and view all.
Rotation
Click the 'Rotate' tab key at the bottom to view the rotation panel. The three radio buttons can be used to switch between axial (xy), frontal (xz), and transverse (yz) orientations.
The 'Twist' slider rotates the cutting plane around a z-axis, while the 'Tilt' button rotates the the cutting plane around an axis in the xy plane.
The tilt and twist angles can be displayed through the 'View' menu. Note that the wireframe box in the bottom left of each view port gives visual feedback about the position and orientation of the slice.
Changing display colors
Click the 'Colors' tab key at the bottom to view the color settings panel. The 'Active channels' drop down menu can be used to enable or disable channels. In the 'Color scheme' drop down menu, the preferred color scheme can be chosen:
- Greyscale. The image is displayed in grey tints. For single channel images, this gives a higher contrast than the emission or global (default RGB) colors.
- Emission colors. If the the emission wavelengths are set correctly, this gives the most intuitive view.
- Global colors. Colors as defined in the Options for channels 0, 1, 2, etc. (by default: red, green, blue, ... respectively)
- False colors. A false color is given to each intensity value. This view gives a high contrast and makes it easy to spot of homogeneous intensity.
- Custom colors. Use the color picker to manually select a color for each channel.
These modes and your original data
The channels in your original data represent usually a fluorescence emission wavelength.
As described above you'll represent a particular channel by a specific color, and you are free to choose that color.The slicers in Huygens have a 'spectral' color mode, which means a color is picked resembling the true emission color. Suppose you have single channel data with emission at 520nm. It's spectral color is a bluish-green. The slicer will show it as such. Each color in the scene is a combination of red, green and blue screen pixels and TIF stores the amount of this red, green and blue in different images. If you save that bluish-green screen image as Tiff, the 'R' channel will be empty, and the blue and green Tiff channel about equally filled. Obviously, that doesn't mean you now have a two-channel data set. If you select color-mode grey, the RGB images in the TIF screen dump will all be equal, since grey colors are created by combining an equal amount of red, green and blue.
When choosing a false color display mode a screen dump of the slicer would have resulted in a Tiff picture with all R,G,B colors present. If you load that Tiff back into Huygens you can split it in 3 crazy looking images. These images are then NOT the same as the channels in your original data.
As a last example, you could have had 10 channels in your original data, but when you save a slice or Mip scene, it will store the screen image in RGB-image: only three channels with no resemblance to your original data.
So in case of the global color display mode which is by default the RGB-colorscheme, confusion can arise if the first channel is mapped to red, the second to green and the third to blue. Subsequent channels are mapped to mix colors like magenta, cyan and the like, but these are not present in an RGB Tiff.
So if you load a tif-screen dump back into Huygens, Huygens will
accidentally show images as your real original data.
Tuning the brightness and contrast
Click the 'Contrast' tab key at the bottom to view the brightness and contrast settings panel. The brightness can be changed per channel, or for all channels at once.
The 'Gamma' drop down menu provides you with a linear and some non-linear ways of mapping data values to pixel intensities. These are:
- Linear (default): In this mode the pixel values are mapped to screen buffer color intensities in a linear fashion. Note that the actual translation of the screen buffer values to the actual brightness of a screen pixel is usually quite non-linear.
- Compress: Where an image contains a few very bright spots and some larger darker structures using Linear mode will result in poor visibility of the darker structures. Restoration of such images is likely to further increase the dynamic range resulting in the large structures becoming even dimmer. In such cases use the compress display mode to increase the contrast of the low valued regions and reduce the contrast of the high-valued regions. Another way to improve the visibility of dark structures is the usage of false colors (see above).
- Widefield (WF): In restoring widefield images it sometimes happens that blur removal is not perfect, for instance when one is forced to use a theoretical point spread function in sub optimal optical conditions. In such cases the visibility of blur remnants can be effectively suppressed.
Click on the small plot images to open the contrast editor.
Automatic panning, slicing and zooming
When you click the middle mouse button, the Twin Slicer will automatically center and zoom in on the brightest spot in a 3D neighborhood around the cursor.Measure distances
To overlay a ruler on the image, hold the left mouse button and drag. The length of the line in microns is displayed beside it.
Left-click and drag the end points of the ruler to make adjustments. Press and hold Ctrl while dragging an end point to change length without changing direction. Left-click and drag the middle of the ruler to move it in its entirety, without changing length or direction. Press and hold the Ctrl key while dragging the ruler to move it perpendicular to its direction. To remove the ruler, left-click somewhere else on the image.
Measure intensity profiles
When a ruler is drawn on the left slicer, the right slicer will be replaced by a plot window and vice versa. See the Data Plotter page for more information about its capabilities.
Viewing two images
To open an additional image in the left or right slicer, click the image name in the drop-down menu above the displayed slice. The 'Linking' menu can be used to change the way in which both slicers communicate. The options in this menu are:- Advanced mode. This enables the user to change the linking of the slice position, panning, and rotation. Doing so may lead to complex situations regarding orientation.
- Pointer location. This shows the position of the mouse pointer in the other slicer.
- Slice position. Makes sure that the the cutting plane for the right slicer crosses the center of the left slice, and vice versa.
- Time frame. Synchronize the time.
- Zoom level. Synchronize the level of magnification.
- Panning. This does not change position of the cutting plane, but it shifts the right slice such that the projection of the center of the left slice is in the center of the right slice, and vice versa.
- Rotation. This option makes sure that the rotation angles for both cutting planes are the same.
Comparison mode
To configure the Huygens Twin Slicer to compare two images, e.g. original and deconvolved, it is best to link all orientation parameters, i.e. slice position, time frame, zoom level, panning and rotation. This makes sure that you are always looking at the same piece of data.
Select 'Plot both slicers' from the 'Plot' menu to show the intensity profiles for both the left and right image in the same plot. The graphs for the left slicer will have solid lines, while the graphs for the right one are dashed.
Orthogonal mode
To view a part of an image in two orthogonal directions, let's say axial (xy) and frontal (xz), do the following:
- Select the same image for both the left and right slicer.
- Tick 'Advanced mode' and tick all links in the 'View' menu, except for 'Rotation'.
- Click the 'Rotate' tab at the bottom and select the 'xy' and 'xz' orientation.
Note that when the cutting planes are not the same, the projected mouse pointer will show a distance (in microns) besides it. If this number is positive, it means that real pointer is more towards you (in front of your screen).
Overview mode
An easy 'overview' mode can be configured as follows:
- Select the same image for both the left and right slicer.
- Tick 'Advanced mode' and tick all links in the 'View' menu, except for 'Zoom' and 'Panning'.
- Drag the sash to the left to make the left slicer a bit smaller.
- Click the 'Zoom' tab at the bottom and click the 'Zoom all' button (
).