← back to the tutorial

Rendering in 2D and 3D

The words of this tutorial, step by step. The text lives in src/smappy/tutorial/topics/; the directions it follows are in src/smappy/tutorial/STYLE.md.

From table to picture

1. card: Rendering in 2D and 3D

What is drawn, how SMAPpy draws it, what to change for a figure, how to save it, and the 3D view.

spoken: This tutorial is about the picture: how it is drawn, how to change it, and the 3D view.

2. card: A picture of positions

A localization is a position with an uncertainty. Rendering draws each one as a small blur, or counts them per pixel.

What the picture looks like is a choice; the table underneath stays the same.

spoken: A localization is a position with an uncertainty. Rendering draws each one as a blur, or counts them per pixel.

What is drawn

3. Each layer draws only what passes its filter. A quick button in bold has a bound: a new table starts with a few, on precision and fit quality.

4. Any attribute can be filtered: the list below the buttons has them all, and each layer keeps its own bounds.

5. With merge blinks ticked, each blink is one localization: its positions averaged and its photons added, so it is more precise.

6. Unticked, every frame of every blink is drawn: more localizations, each one less precise.

7. Merge settings, beside merge blinks, sets how far a molecule may move between frames, and how many dark frames a blink may have.

8. The filter and merge blinks also decide what the analysis plugins measure: what is drawn is what is measured.

Render modes

9. Gaussian (precision) draws each localization as wide as it is uncertain: well-localized ones are sharp, poor ones are soft.

10. Histogram counts the localizations in each pixel. Nothing is smoothed, so up close the picture is grainy, but it hides nothing.

11. Gaussian (fixed) draws every localization with the same width, set under more.

Brightness and colour

12. Contrast sets how many of the brightest pixels are saturated. A smaller value saturates more, and faint structure comes up.

13. The colour table, LUT, maps brightness to colour.

14. White background turns the picture over for a figure: ink on paper, with the colours kept.

Saving

15. The more button (⋯) at the right of the toolbar saves the picture: PNG as displayed keeps what you see, Save image renders it again at a pixel size you choose, for a figure or to measure.

Other axes

16. The picture's axes need not be x and y. With z as the second axis, the same table is a side view of the ring.

17. Any attribute works: photons against frame, say, to see bleaching. Reset brings back the ordinary picture.

3D

18. View, 3D view opens the same layers in 3D, with their filters and colours.

19. Drag to turn it, scroll to zoom. The cubes jump to the top, front and side views; the arrows bring the whole box back.

20. The circling arrow, or Space, rocks the view back and forth: what moves against the rest is at another depth.

21. Options holds how it is drawn. Colour by depth shows which parts are near and which are far.

22. The slab is the box that is drawn. It follows the region drawn in 2D; narrowed in z it is a thin section.

Next

23. card: What to remember

- Render mode: precision for the picture, hist to see exactly what is there.
- Contrast, LUT, white background: how it looks, never what it is.
- Save: under ⋯, a PNG as shown, or Save image at a chosen pixel size.
- 3D view: the same layers, turned, with a slab.

spoken: That is rendering. Next: plugins, which measure what is drawn.