Render tab

Panels

The layers of the picture – which localizations each one shows, and how it is drawn.

What it does

A localization table is a list of positions, not an image. To see the structure, every localization is drawn as a small spot on a fine grid and the spots are added up: where many molecules were found, the picture is bright. The Render tab decides what goes into that picture and how it is drawn.

The picture is made of layers. Each layer shows the localizations its own filter keeps, drawn its own way – one layer per channel or per file, say, or the same data twice with different filters. The visible layers are added up into the image in the main window, as in SMAP. The overlay button on the picture's toolbar shows them split instead, a panel per layer side by side, or split + overlay with the added-up picture after them (SMAP's split and comp). The panels go across or one above another, whichever shows the data larger in the window, and move and zoom together; the ROI (region of interest: a rectangle, circle, line or polygon drawn on the picture) is drawn and edited on the first and its outline is on all of them.

The picture's toolbar holds, from the left, what draws and what looks. The ROI button draws a region of interest (right-click it for the kind; a circle is drawn from its centre out); Escape cancels the drawing, and a right-click on the ROI deletes it. While the kind is a line, the field beside it is the line's width. ⤢ (Reset view, Ctrl+0) shows everything; 3D opens the 3D view; with two layers or more, the layout button chooses overlay or side by side; the field after it is what one screen pixel is – the zoom, as a number, with as many decimals as keep it within 3 % (524, 17, 12.3, 0.53 nm). Type a size to zoom to it, or right-click it to go to 10 nm. Right-click the picture to move that place to the middle (on the ROI, to delete it); double-click it to show everything. At the right edge are the assistant's button and ⋯ (more): saving the picture, the colour bar, what the mouse and the keys do in the picture, the keys that turn a line ROI among them, and Help, this page. Under the picture is how many localizations each layer draws in the view – counted again after every zoom – or in the ROI when one is drawn, followed by the ROI's size: a line's length and width (a line ROI measures a distance, as in SMAP), a rectangle's or an ellipse's sides, a circle's diameter, a polygon's area, all following a drag as it happens and written, as the pixel size is, within 3 %. Every control below the layer strip edits one layer, the one selected in the strip.

What a layer shows is also what the rest of the program works on. A plugin measures the localizations the layer's filter keeps (inside the drawn ROI, if there is one), and the ROI manager takes its filter, and whether blinks are merged, from a layer too. So a filter set here to clean up the picture also decides what is measured.

The same settings for another dataset. To compare many datasets – the positions of one sample, each opened in a window of its own – set up one window, then Edit > Copy settings (Ctrl+Alt+C) there and Edit > Paste settings (Ctrl+Alt+V) in each of the others. What is copied is what is in front, and nothing else, so copying a plugin's settings never changes the other window's picture:

The same two items are on a right-click: on this tab (anywhere a control does not take the click), on a plugin – its title in a tab, or anywhere in its panel, in a tab, a detached section or a window of its own. From there they copy that one, and paste into that one alone: this tab's Paste settings takes only layers, a plugin's only its own settings, and each is greyed, saying why, while the clipboard holds nothing for it.

The status line says what was copied. A paste puts it where it belongs, whatever the other window has in front: layers onto its layers, a plugin's settings into that plugin where it is pinned and into its window if one is open; the status line says where they went. The other window keeps its data, its image layers and where it is zoomed. A layer that showed only some of the files shows all of them in a window with a different number of files, where those file numbers would mean something else, and a filter on an attribute the other table does not have is left out. Nothing of this is applied when a window opens. The settings are plain text: paste them into a text file to keep a lab's usual set-up, and copy them from there to paste them again.

From top to bottom the tab has: a small overview of the whole field, the layer strip, the filter, the image section (only for a layer that is a pixel image), the display – how the localizations are drawn – and, closed by default, the axes, which turn the picture into a plot of any attribute (one value every localization carries, such as photons or frame) against any other.

How it works

1. Layers. A file opens as one layer. + adds another, which starts as a copy of the selected one – a second layer is nearly always the first with one thing changed. A layer can also be a pixel image, placed under the localizations by its pixel size and position: the camera frames the fit kept with the file (their average, and a few single frames), or a widefield or diffraction-limited picture of the same cells. The layers are drawn one by one and their colours added.

An image file with several pages is a stack, and what its pages are is read from the file where it says: a z-stack (the planes at heights a step apart), a time series, or several channels. Each channel becomes an image of its own, a source an image layer can show, as two channels of localizations are two layers. Opening an image shows nothing yet: add an image layer and choose it as its source. A file that does not say – a plain multi-page TIFF – is asked about when it is opened: how many channels, in which order, and whether the rest are z-slices or time frames, with the step between them. A stack layer shows one plane, or the planes of a range taken together: their maximum (a maximum-intensity projection, MIP), mean or sum. In the 3D view a z-stack can be a volume.

2. The filter. A filter (also called bounds) is a range per attribute: keep the localizations whose precision is at most 25 nm, whose z lies within 500 nm of focus, and so on. A localization is shown only if it is inside every range. The tab shows one attribute at a time, as a histogram with the kept range shaded, and the range can be dragged or typed. A new layer opens with a few bounds already set (see In detail), so that fits which are clearly bad are left out from the start – and are left out visibly, in the shaded histogram, rather than silently. A file opened in place of the last one keeps the filters its first layer had, and a saved workspace (File > Workspace > Save) keeps them too and sets them again when it is opened.

A simulated ring-and-cross structure. Left: the localization precision of all localizations, with the range the default bound keeps shaded. Middle: every localization. Right: what the default bounds take out – mostly the dim, imprecise localizations scattered around the lines.

3. Merging blinks. A fluorophore that stays on for several camera frames is localized in each of them, so one blink appears as a small cluster of localizations. Merge blinks (also called grouping or linking) combines the localizations in consecutive frames that come from one blinking event – that lie within a small box of each other – into one localization, at their weighted mean position, with the photons of all of them and a correspondingly better precision. A picture of merged blinks is cleaner and counts molecules more fairly: a long blink no longer weighs more than a short one. Layers merge blinks by default (merge blinks). A large file does not wait for the merge: it opens at once, the blinks are merged in the background – the picture says "merging blinks" with the stage and a clock, and so does the status bar – and they are drawn when they are there. No single localizations are drawn in their place meanwhile. The distance and the number of dark frames allowed are set under merge settings..., beside it, for every layer at once. The distance is either fixed or, with merge by set to precision, scaled by how precisely each localization was measured: bright ones are held close together, dim ones may lie further apart.

The same localizations (with the default bounds, drawn as a histogram) before and after merging blinks, and how many frames each blink lasted.

4. Drawing the localizations. render chooses the spot each localization is drawn as. histogram counts localizations per pixel: exact, but at a fine pixel size mostly single bright pixels. Gaussian (fixed) draws every localization as the same Gaussian blob, of width sigma (under more). Gaussian (precision), the default, draws each one as a Gaussian as wide as its own localization precision (also called the CRLB or localization uncertainty: how far its fitted position is expected to lie from the true one) times the precision factor (Baddeley et al. 2010): a precise localization is a sharp dot, an uncertain one a faint wide blur, so the picture shows how well each position is known. diffraction-limited draws what the camera saw instead: each localization as a spot as wide as its fitted PSF (point spread function: the image one molecule makes on the camera), on the camera's own pixels – the widefield picture of the same molecules, to set beside the super-resolved one. tracks draws tracks instead of spots: each track – the localizations sharing a value of the track id attribute, on auto track_id from Link tracks, else MINFLUX's tid, else a simulation's track_id_true – as the line through its localizations in time order, line width pixels wide. Coloured by an attribute, the line takes the colour of each step: by frame, a track runs through the LUT as it goes on; by track_D_um2_per_s from Tracking analysis, slow tracks and fast ones stand apart. Voronoi density (SharpViSu, Andronov et al. 2016) divides the plane into a cell per localization – its Voronoi tessellation: the part of the plane closer to it than to any other – and colours each cell by its density, one over its area. A dense structure is evenly bright and sparse background is dim, with no spot width to choose: the cells are as large as the gaps between the localizations. The cells along the edge of the field are open, and are left empty.

The crossing of the two lines, 800 nm across, drawn with each of the three super-resolution modes.

The crossing in Gaussian (precision) and Voronoi density, and the whole field in Voronoi density (contrast 2): each cell is as bright as it is small, so the lines are filled with a mosaic of bright cells, with no gaps between the spots, and the scattered background is dim.

The whole field, 10 µm across, in Gaussian (precision) and diffraction-limited: on 100 nm camera pixels the ring and the lines are as wide as the PSF, as the camera saw them.

Simulated tracks, 6 µm across, drawn as tracks: left in one colour, right coloured by frame, so each track runs from purple through blue to red as it goes on and a crossing of two tracks at different times is told apart.

5. Brightness and colour. A super-resolution image has a few very bright pixels – a long blink, a fiducial bead – and a great many faint ones, so its brightest pixel is a useless scale. contrast instead saturates a fixed fraction of the pixels: at contrast 3 the brightest one in a thousand are white, at 2 one in a hundred (brighter), at 4 one in ten thousand (darker). Switched from quantile to absolute, full scale is instead a set density, in localizations per µm², which keeps a structure equally bright as one zooms and from one dataset to the next of the same kind. gamma below 1 lifts the faint parts further. The LUT (look-up table, also called a colour map) is the colour scale brightness is shown in. Instead of brightness alone, the colour can also encode an attribute (colour by, e.g. z), with the brightness still showing density.

The same crossing at three contrasts, and with gamma 0.5.

The whole field coloured by z: the ring is tilted, so its top and bottom lie at different depths, and the two lines are at slightly different heights. The same on a white background, and the plain picture with the LUT inverted.

6. Any attribute against any other. The axes section says which attribute each axis of the picture is. Normally that is x and y, and the picture is a picture of the sample. Choose z for the vertical axis and it is a side view; choose frame and photons and it is a plot of brightness over the acquisition – drawn with the same layers, filters, colours and ROIs as the image. This is how bleaching, a change of laser power or a drop in quality over time is seen at a glance.

Left: z against x – a side view of the tilted ring and the two lines (z stretched for the figure). Right: photons against frame, one dot per blink.

7. Moving through the data. The player shows only a window of one coordinate at a time and moves it: the frames (how a structure builds up, or bleaches), the time, z (slices through a cell), any attribute, or the position along or across a line ROI. It narrows what the 2D and the 3D windows draw, nothing else: the filters stay as they are, and a plugin run meanwhile sees the whole table. A window wider than the step makes the windows overlap, so the picture changes smoothly. With the 3D window following a line ROI, across the line moves a thin slice through the structure as it is seen from the side. Under more, the window can narrow some layers and leave the others whole: tracks drawn as they grow, over all the localizations they came from. Record... writes every step, as the 2D or the 3D window shows it, to a movie.

The player can be driven from the picture, without the slider. Space, in the render window or the 3D window, plays and pauses it once it is the animation used last – opening the player, playing it or moving it is using it; starting the 3D window's rock is using that, and Space then rocks again. Alt (Option on a Mac) with the wheel over the picture moves it a step on or back per notch, and Alt with a drag scrubs it: a drag across the whole width of the picture is the whole scan. The plain wheel and drag still zoom and pan.

8. Moving the view. The player's view path, under more, moves the 3D view along a path through key views: the views one adds as they are, and turns and zooms made for one. Between the keys the view moves smoothly, without stopping or jerking at a key, about the point in the middle of the screen, so what one looks at stays there. A key also keeps the 3D view's box with its size, so the box can move too: a key with the whole depth, then one with the front face pushed back, moves that face through the sample and shows the structure layer by layer. The path runs on the player's time line: over the scan, so a structure turns while it builds up, or by itself with scan on none, at the keys' own times. Record... of the 3D view writes the path as a movie. The 3D window's rock or spin (its ⟳) is made such a path by its Make a movie of this..., which opens the player on it.

In detail

How the view path is interpolated. A key is the view about the point in the middle of the screen – a turn, that point and a zoom – and the 3D view's box; anything else the 3D window draws with (its engine, opacity, depth cue) stays as the window has it. The turn is interpolated on unit quaternions, which have none of the jumps of interpolating the azimuth and elevation angles where they wrap around. Each key gets an angular velocity , the mean of the turns to the keys on either side weighted by their times, as Catmull-Rom takes its tangents; between keys and , seconds apart, the turn is a cubic Bezier curve on the sphere of rotations (Shoemake 1985, by repeated slerp) through , , and . So the turn neither stops nor changes direction suddenly at a key, and keys evenly spaced about one axis turn at a constant rate. Between two keys the turn takes the shorter way round, less than half a turn, so a turn made with add turn gets a key every 90 degrees. The point looked at, the zoom and the box's centre, size and angle follow a cubic through the keys (Catmull-Rom, with the keys' own times), the zoom on a log scale so that zooming in looks equally fast throughout; with two keys that is a straight line, so a box whose back face is the same in both keys keeps it there all the way. ease in and out slows the start and the end of the whole path, not each key. A path that ends where it began, a whole turn, leaves out its last view when it plays in a loop, so the loop does not stall on it.

The rendering kernel. Each localization contributes the integral of its Gaussian over each pixel, not the Gaussian's value at the pixel centre:

with , the pixel edges. The kernel is cut off at 2.7 and normalised by its own sum over the pixels it reaches, so every localization adds exactly one to the image, whatever its width and wherever it sits in its pixel; a histogram is the limit of the same kernel. A pixel covers for pixel size .

The width in Gaussian (precision). With the localization precision of localization (xy_err_nm), the precision factor (0.5 by default) and the rendered pixel size,

The floor of 0.7 pixels keeps a very precise localization from vanishing between pixels; it follows the zoom, since the main view renders at the screen's resolution. The cap keeps a handful of absurd precisions from smearing over the picture and from dominating the render time. A missing precision is drawn at the floor. On an axis that is z, the axial precision z_err_nm is used where the fit produced one. On an axis that is not a position at all (photons, frame), there is no precision, and the explicit width is used – zero, plain binning, unless set.

The diffraction-limited mode. As SMAP's DL: the picture is rendered on a grid of camera pixels – their edges on multiples of the pixel size , which comes from the fit's metadata (pixelsize_nm, or the camera's), a simulation's optics, or 100 nm – with each localization a Gaussian of width sigma_nm (and sigma_y_nm vertically, where the fit had two), and then blown up to the view pixel by pixel, without interpolation, so that the camera's pixels stay visible. A width that is missing, not positive or above 1500 nm (a failed fit) is one camera pixel. It needs the positions on both axes; the 3D view, whose turned picture no camera saw, draws it as Gaussian (fixed) at the median PSF width.

The tracks mode. The rows the layer's filter keeps with an id above 0 are sorted by id and then by frame (by time_s where the table has it); each two consecutive ones of a track are a segment. A pixel takes from a segment the share of it a line of width pixels covers: across the line, from the distance of the pixel's centre from it, , so the line is antialiased; along it, the part of a stretch one pixel long about the centre that lies on the segment. The ends are square and soft, so the segments of a track tile it: a straight line is one along its length whether it is one segment or a thousand. Zoomed out, a track's steps are shorter than a pixel and each adds only its length. (With round ends, as before 2026-10, each step added a whole line, a slow track piled up into a blob hundreds of times brighter than a line, and the quantile contrast, set by those blobs, dimmed every other track.) A segment of no length – a track along the line of sight in the 3D view – is a round dot. A segment weighs one (or the mean of its ends' weight attribute) and, coloured by an attribute, takes the mean of its two ends' values. Unless lines add up is ticked, a pixel's weight is then capped at one line's (the heaviest segment's, with a weight attribute) and its colour scaled with it: a joint of two segments, or a crossing of two tracks, is no brighter than the line, and the quantile contrast is set by the lines. The view culls whole tracks by their bounding boxes rather than localizations by position, since a segment across the view can have both ends outside it. The line width is in pixels of the picture, so an exported picture at a finer pixel size has thinner lines in nanometres. The 3D view draws the localizations of a tracks layer as points, as Gaussian (precision) where the table has precisions.

The Voronoi density mode. The cells are those of every localization the layer's filter keeps, from the same Delaunay triangulation as Neighbourhood per localization's Voronoi density: localizations at exactly the same position share a cell and are each counted, and a cell open at the edge of the field has no area. A cell of area holding localizations has the density , in localizations per µm² (per square units on axes that are not nm). A pixel of area takes the mean density over it. Where the cell its centre lies in – the cell of the localization nearest to the centre – is larger than the pixel, that is the cell's density, SharpViSu's picture. Cells smaller than the pixel are counted into the pixel their localizations are in instead, since : zoomed out, where a pixel holds many cells, the picture is the histogram over the pixel's area rather than one cell picked at random, which would be noise. With the localizations of the small cells in the pixel and their areas,

where is the density of the cell at the centre if it is larger than the pixel, and 0 if it is small or open. On a uniform field the picture is flat at the field's density at any zoom. Coloured by an attribute, a counted localization brings its own colour and a cell the mean of its localizations' values. The weight attribute is not used: the density is of localizations.

The cells are computed once for a layer's table and filter (about 12 µs a localization on 4 cores: two million in half a minute) and kept for the last four, so panning, zooming and exporting only look the pixels up, a few tenths of a second for a million pixels. A filter changed, or a fit still adding localizations, computes them again. The cells are never of the localizations in view only, as those along the view's edge would change with every pan. Just outside the field's edge, a cell that closes beyond it is long and thin, so of low density; further out the open cells leave the picture empty. The 3D view draws a Voronoi density layer as points, as Gaussian (precision) where the table has precisions.

Contrast and gamma. With the rendered intensity of a pixel and the contrast, the pixel value that becomes full scale is the quantile

that is, of the pixels are saturated (if that quantile is zero, as in a very sparse image, the maximum is used). The displayed value is with the gamma, and picks one of the LUT's 256 colours. Contrast and gamma change only this last step, so moving them does not render again. The quantile is SMAP's, over every pixel of the view, empty ones included.

The absolute scale. SMAP's other choice, an absolute , is a number of localizations per pixel, so it holds for one zoom only: a pixel twice as wide holds four times as many, and the picture saturates. Here the absolute maximum is a density, in localizations per µm², and for pixels nm wide

so a structure keeps its brightness as one zooms – except where the width it is drawn with changes with the pixel: Gaussian (precision) never draws a spot narrower than 0.7 pixels, and a histogram's few localizations per pixel when zoomed in are each bright on their own. Voronoi density is a density already and is compared with as it is, and DL counts over the camera's pixels. A tracks line is one wherever it passes, so there is the number of lines over one pixel, and for an image layer one of its own values. Switching from quantile to absolute sets to the value that shows the view as it is, so the picture does not jump.

Colour by an attribute. Each localization gets the LUT colour of its value in the colour range (values outside take the end colours). Colours are added up during rendering, together with the plain count; the displayed hue is the average colour of the pixel and its brightness the count, put through contrast and gamma as above. A dense pixel therefore keeps its hue instead of bleaching to white. Choosing an attribute starts its range at its 0.5th to 99.5th percentile and switches the LUT to rainbow; going back to intensity switches it to red hot. Because the colour is part of the rendering here, changing the LUT of a coloured layer renders it again.

The LUTs. The list has three groups, the ones that suit how the layer is coloured first. One colour (gray, red, green, ...) runs from black to the colour. Several colours (red hot, blue cold, green cold, purple fire) runs from black through colours to white, its lightness rising all the way: summing the colour differences along the ramp (in CIE Lab), about three times as many steps can be told apart as on gray. Attribute is for colouring by an attribute. Since the density multiplies the colour there, any darkness of the LUT's own would read as fewer localizations, so its ordered and circular ramps are scaled to full value – each colour's brightest channel at 1 – and rainbow's two ends, dark in the turbo table it comes from, are as bright as its middle. The hue circles (hue circle, four-hue circle) return to their first colour, for angles. The diverging ramps go through black (magenta-black-green) or white (purple-white-orange, blue-white-red) at the middle of the range, for an attribute about a middle value; the first two avoid blue, which is dark on black.

The LUTs by group. The intensity ramps rise from black; the attribute ramps are shown as they colour a picture, the colour across and the density falling from top to bottom, so a ramp with a dark part of its own would look sparse there. Right: each on white paper, where the ramps of several colours run backwards from white.

Inverting, and the white background. As in SMAP, invert depends on what the colour codes. Colouring by intensity, with a LUT colour, it gives per channel (SMAP's lutinvert): red becomes cyan. On two layers in a colour and its opposite, equal intensities add up to grey. Colouring by an attribute, the LUT is turned round, so the low values take its top end; the sum of a rainbow's channels would be no colour of it. white background turns the brightness over and keeps the hue, : black becomes white, a saturated red stays red. It is applied once, to the sum of the layers. A several colours ramp would come out of it with its bright middle as it is – red hot on white ran white, red, yellow, black – so on white paper a ramp from black to white is drawn backwards instead: white for nothing, black for the most, through its colours in the opposite order. The turn-over is its own inverse, which also makes a diverging ramp through black go through white on white paper, and the other way round.

Adding up layers. The RGB images of the visible layers are added and clipped at 1. Two layers in red and green therefore show yellow where both are bright.

The filter. A bound on an attribute keeps ; an empty end is no bound. A localization with no value there (NaN) is excluded by any bound on that attribute – a localization without a z is not in a z slab (a slice of fixed thickness in z, as the 3D view uses). The shown set is the intersection of all bounds and of the file choice. A new layer starts with xy_err_nm at most 25 nm, logl_rel at least -2 and z_nm between -500 and 500 nm, plus sigma_nm at most 180 nm on a 2D table (in 3D the PSF width changes with z by design), each only if the table has that attribute, and any bounds the file carries from Remove Localizations. Those are the shipped defaults. A file opened in place of the last one starts instead from the bounds of the last table's first layer, on the attributes that table had – a bound removed there stays removed – and from the defaults on the attributes it did not have; the sigma_nm bound of a 2D table is not carried onto a 3D one. A workspace file stores the same set (filters), which replaces the shipped defaults for new files and new layers and is set on the first layer when the workspace is opened; the bounds a file carries are its own and are not stored. A layer has one set of bounds, applied to the table it shows: on a layer that merges blinks a bound on xy_err_nm or photons is a bound on a blink's combined precision or summed photons, so the same bound keeps more blinks than it keeps frames. The histogram spans the bulk of the attribute in 120 bins (of a random sample of two million, for a larger table): the 1st to 99th percentile, cut to three interquartile ranges beyond the quartiles, so that the long tail of a precision attribute – a few faint spots with errors of hundreds of nanometres – does not squeeze the rest into one bar. As in SMAP, dragging an edge of the shaded range to the end of the histogram removes that end of the bound, so the tail is not cut off, and anywhere else it is the number. Only the dragged end changes: a bound that lies beyond the histogram (the 25 nm one, on a sharp table) stays until its own edge is moved or its number typed.

Merging blinks. The linking follows SMAP's: the localizations are sorted by frame and x, and each one not yet linked starts a new blink. From the blink's running position it looks in the next frame for the first unlinked localization inside a box of half-width (within, 50 nm) in both x and y – the first found, not the nearest – and moves the running position halfway towards it. A blink may skip up to dark frames (1) before it is closed. With merge by precision (SMAP's locprec mode) the box becomes a circle whose radius depends on the localizations: one joins the blink if its distance from the running position satisfies

with its lateral precision (xy_err_nm), the precision of the running position (which improves as it averages, at each link), and 2.5 – and is always allowed up to at least (10 nm) and never beyond at most (150 nm). For one emitter follows a chi-squared distribution with two degrees of freedom, so a link is kept with probability : 96% at , 99.97% at . A localization without a precision may link up to at most; a table without a precision attribute is linked by the fixed box, with a warning. Unlike SMAP, which took the first localization's precision for both terms, the precision of the candidate and of the running position are used, and the bounds clamp itself rather than each . Files and channels are linked separately. Each blink then becomes one row: positions weighted by (x by x_err_nm, y by y_err_nm, z by z_err_nm where the table has them), photons and background summed, precisions combined as , the error of a summed quantity as , logl_rel the best, frame the first. n_in_group, the number of frames the blink was on, and group_id are written onto both tables. Merging is done once per table and kept; switching merge blinks off and on costs nothing after the first time. It is done when the merged table is first read: for a table of 300,000 localizations or more, in the background (a few seconds for a few million), the layer drawing nothing until it is ready – after a file opens, a table is changed, merge blinks is ticked or the merge settings change. A plugin run started meanwhile waits for it and starts by itself when it is done.

Leaving localizations out of the merge. Where the table has an attribute group_use, a localization with 0 there takes no part in merging: it is in no blink (group_id -1, n_in_group 0), a blink or trace of nothing but such localizations is not in the merged table at all, and the rest are merged without it. It stays in the localizations, for every layer that shows them and every plugin that reads them. Math Parser makes the attribute – new attribute group_use, an expression such as trace_index > 20 merges each MINFLUX trace without its first 20 localizations, where a still emitter is still creeping into place – and the merge follows it: changed or undone, the blinks are merged again.

The axes. A coordinate is the attribute divided by that axis's scale, , and the render grid stays square in these units – so the zoom, the ROIs and the 3D box work unchanged, and the two scales are what makes a pixel represent, say, 5 frames across and 20 photons up. Choosing an attribute (or fit) sets each scale that is not a position to a round 1, 2 or 5 times a power of ten, at or below its 1-99 % span divided by 1000 (or by the span of a position axis shown beside it), and frames the view on that span. A position axis keeps a scale of 1, so that a picture of x against z is still a picture of a place. On any axis that is not a position the rendering width is set to zero (plain binning), and put back on the way back to x and y.

Controls

overview

The whole field, with a yellow frame where the main view is; click in it to move the main view there, at the same zoom. Any click in it, on the field or the grey around it, also brings the main view's window to the front. It shows the extent of the visible layers' localizations, or of an image layer, and 1 % around it, as large as the panel allows – docked, its height follows the data's shape, up to 200 pixels so that the tab's rows below it fit the window; taken out into a window of its own, it fills the window. It draws itself when a table is opened.

update

Draws the overview again with the current layers – after a filter, a LUT or a layer has changed.

+

Adds a layer: localizations or image layer. The layer strip also has one button per layer: click to edit it, right-click to show or hide it without selecting it; bold means drawn, struck through means hidden.

visible

Whether the selected layer is drawn. A hidden layer keeps its settings and is still what a plugin reads when it asks for that layer.

name

The selected layer's name, shown in its button's tooltip and in the layer lists of the dialogs that ask for one.

localizations

A new localization layer on the same table, starting as a copy of the selected one – its bounds, files, display and merge blinks – and the tab moves onto it.

image layer

Adds an image layer. When a file open has camera frames kept with it, the new layer shows their average; otherwise the first image opened. With neither – during a live fit, whose frames come when it ends – the layer draws nothing and shows the first image that arrives, the fit's frames or a file opened with its source.

-

Removes the selected layer. There is always at least one.

⤓

Copies settings from another layer onto the selected one. Only the display is ticked at first: the bounds and the files are usually what makes two layers two.

filter

The quick buttons (precision, fit quality, frame, z, photons, PSF, channel, file) pick the usual attributes – xy_err_nm, logl_rel, frame, z_nm, photons, sigma_nm, channel, filenumber, each where the table has it, and named in the button's tooltip; the drop-down has every numeric attribute. A bounded attribute without a quick button gets one, named by the attribute, for as long as the bound is there. An attribute with a bound on it is bold and marked with a dot, and the line under the quick buttons lists every bound of the layer (xy_err_nm ≤ 25): click one to edit it, × to remove it, so a bound on an attribute not on show is not forgotten. The status bar says how much the filters hide. The count reads shown / all, and how many are in the ROI when one is drawn. For filenumber the histogram is replaced by a list of the files to tick; right-click a file to remove it from the session. A session of several files opens on the first: tick the others to see them too. A file added to a session keeps the layers on the files they showed. Shown together, every file is filtered and its blinks merged before the picture is drawn, which for large files takes a while; one file at a time is quick.

min

The lower bound; empty is none.

max

The upper bound; empty is none.

clear

Removes the bounds on the attribute shown.

invert

The filter's, beside clear: turns the bound on the attribute shown around, so the layer shows what that bound throws away – outside the range, and the localizations with no value – while every other bound keeps what it keeps. It is the quickest look at what one filter costs: invert the precision bound and the picture is the localizations it removes from the ones the other bounds pass. Only an attribute with a bound can be inverted. An inverted bound is red wherever it is named – its quick button, the drop-down, the line of bounds (not (xy_err_nm ≤ 25)) and the histogram's range – so a layer showing the rejects is not taken for one showing the data. Dragging or typing the range keeps it inverted; clear and × remove the inversion with the bound. Plugins run on the layer see what it shows, inverted bound included, and a copied layer takes it along.

regions

Shown while the Regions tab's region filter has conditions, and ticked: the layer shows only the localizations of the regions that pass them. Untick it to see every localization of this layer again without losing the conditions; tick it to filter again. It is the layer's bound on the region_filter attribute, which is why it is per layer – one layer filtered beside one that is not shows what the filter takes away.

all

Ticks every file.

none

Unticks every file – the layer then shows nothing until one is ticked.

image

Shown instead of the filter for an image layer: where the image lies under the localizations.

source

What the layer shows. The list has the camera frames each open file kept (name: raw frames – the average of every fitted frame, then single frames spaced over the acquisition, in photons), every image opened, and open file... for another TIFF or PNG. The kept frames are placed by the camera's pixel size and ROI, so they lie under the localizations without adjusting anything. So is a Micro-Manager image taken with a camera ROI: its pixel size is Micro-Manager's own, and its ROI places it where a movie taken with the same ROI puts its localizations. Any other file is placed by what it records (its resolution tags, an ImageJ x0), else at 0, 0. Saving the localizations keeps the kept frames and every image a layer shows in the file, with their pixel size and position, and opening it again offers them here.

pixel size (nm)

Must be the image's real pixel size in the sample, or it will not line up with the localizations.

x0 (nm)

Where the image's first pixel lies in x, in the localizations' coordinates. Adjust it (and y0) to register the image to the localizations.

y0 (nm)

Where the image's first pixel lies in y.

planes are

What the planes of a stack are: z-slices, time frames, or planes when that is not known (the frames a fit kept are these). Beside it the step between them: nm between z-slices, seconds between frames. Read from the file, or given when it was opened; correct it here if it is wrong. Only a z-stack with a step has heights, which follow z filter and the 3D view need. Channels cannot be set here: they were split into layers when the file was opened, so open it again to split it differently.

show

slice shows one plane, chosen by frame. max, mean and sum show the planes from the first number to the second (counted from 1) taken together, pixel by pixel: the maximum is a maximum-intensity projection, the usual flat view of a z-stack of beads or cells, and the mean of a time series smooths its noise. A projection is computed once per range and kept.

follow z filter

For a z-stack shown as a slice: the plane at the middle of the z range the first visible localization layer's filter keeps, so that narrowing z to a slab of localizations shows the image plane they are in. Without both ends of a z range set, the layer keeps its own plane.

frame

For a stack shown as a slice, which plane is shown; the label beside it says which – z 250 nm in a z-stack, t 1.5 s in a time series, average of 2000 frames or frame 17 (the number the frame attribute uses) for the frames a fit kept. Each layer has its own, so two layers can show the average and one frame.

in 3D

How the 3D view draws a z-stack. plane: the plane at the height of the centre of rotation, flat among the localizations. max (MIP): along each line of sight the brightest value in the stack – from the top this is the stack's own MIP. volume: what stands above the stack's background added up along each line of sight, the front hiding the back as far as the 3D view's opacity says. Any other image is always a plane.

display

How the selected layer is drawn. An image layer uses only the LUT, contrast, gamma and white background.

render

Gaussian (precision) for the usual picture. Gaussian (fixed) when every spot should look alike, e.g. to compare layers of different quality; histogram for counting, or at a pixel size well above the precision. diffraction-limited for the widefield picture: zoomed out it looks like the average of the raw frames, which is a check that the fit found what was there. tracks for single-particle tracking, once the tracks are linked. Voronoi density to see structures of very different densities at once, or to judge densities by eye; the picture of a layer with millions of localizations takes a while the first time.

The first time a layer is set to tracks, and if it is not coloured by an attribute already, it is coloured by its track id on the rainbow LUT, so that each track has a colour of its own; choose intensity to draw them all in one. Choosing tracks also unticks merge blinks on that layer: merging joins a slow particle's localizations in consecutive frames into one, and the line through the blinks is coarser than the track. Tick it again to draw the blinks.

track id

The id attribute of the tracks, in tracks only. auto takes the first of track_id, tid and track_id_true the table has, and says which; any integer attribute can be chosen instead – a second linking, group_id to join each blink's localizations, cluster_id for each cluster's in time order. When the attribute is missing the picture says so over the view.

line width

1 pixel is crisp at any zoom; 2 to 3 for a figure at a coarse pixel size, or to make sparse tracks visible zoomed out.

colour by

intensity colours by brightness through the LUT; attribute colours by the attribute chosen beside it. A visible layer coloured by an attribute puts a colour bar in the render window's top right corner: the LUT over the colour range, its ends rounded, and above it the layer and, on the line under it, the attribute, whose name carries the unit (z_nm). Each scale has its own bar, stacked one under the other; layers with the same attribute, LUT, inversion and range share one, labelled with all of them. A picture saved or copied from the render window draws the same bars into it (Save image). The toolbar's options menu hides the bar, on screen and in what is saved or copied.

colour range

The values that get the two ends of the LUT. Narrow it to spread the colours over the part of the range that matters – for z, the depth of the structure rather than of the outliers.

auto

Sets the colour range to the attribute's 0.5th to 99.5th percentile of what the picture shows: the localizations that pass the filter, inside the ROI if one is drawn, and in view. Zoom in on a part and press it to spread the colours over that part. Choosing an attribute in colour by starts from the same percentiles over all the layer's localizations.

LUT

Red hot for intensity, rainbow for an attribute. For several layers, one pure colour each (red, green, cyan, magenta) adds up legibly; red hot and blue cold do too, with more visible steps. A diverging ramp suits an attribute with a meaningful middle, such as a difference; hue circle and four-hue circle an angle.

invert

By intensity, the opposite colour at the same brightness: red becomes cyan. By an attribute, the LUT turned round: on z, near and far swap colours. For black on white, use white background instead.

contrast

quantile: the default, 3.5, is a good start. Too low, and the structure saturates into white bands; too high, and all but the brightest spots disappear. The same number transfers between datasets, because it is a fraction of pixels, not a brightness. absolute: for comparing the brightness of several datasets or regions, or zooming without the picture rescaling itself. Switch to it where the picture looks right, and the maximum starts there; a dense structure is typically thousands of localizations per µm².

merge blinks

Draws one localization per blink; on by default. The table is merged the first time it is needed – for a large one in the background, the tick showing the setting and the picture "merging blinks" until the blinks are ready; after that it is free. Unticked meanwhile, the layer shows the localizations at once, and the merge still finishes and is kept. A plugin measures what the layer shows – blinks, when they are merged – except one that needs the single localizations (a drift correction, Localization Precision, anything that changes the table), which says so on its page.

merge settings...

How blinks are merged, the session's settings, for every layer at once: merge by – fixed distance, a box of half-width within (nm), or precision, a radius of k times the two localizations' combined precision, held between at least and at most (nm) – and dark frames, how many frames a blink may be dark and still continue. A fixed box wide enough to keep the dim localizations of a blink together also merges bright neighbours that their precision could tell apart; merging by precision avoids both, at the price of cutting the 4% of links that fall beyond 2.5 sigma (raise k to keep more). OK merges the table again – once, since every layer shows the same merged table; a large one in the background, the layers drawing nothing until then – and records the new settings in the file's history, since the merged table cannot tell which ones produced it. The drift corrections take these settings too, unless their own within and dark frames are set.

more

The rendering widths, gamma and the white background. Only the widths the chosen render mode uses are shown.

sigma

The width in Gaussian (fixed), in the units of the horizontal axis; 0 bins. A few times the pixel size, or about the typical precision. Shown in Gaussian (fixed), and in Gaussian (precision) when an axis is not a position (there is no precision for photons or frames). On x against y the picture is drawn round, with this one width; where the axes are different quantities, the row reads sigma x and sigma y appears beside it.

sigma y

The vertical width, for axes that are not the same quantity. Empty follows sigma where the two axes are the same quantity and bins where they are not.

precision factor

In Gaussian (precision) only. 0.5 draws each localization at half its precision: sharper than the statistics strictly allow, which is what makes fine structure readable. 1 is the honest width; much below 0.5 the spots fall apart into single pixels.

gamma

Below 1 lifts the faint parts, above 1 suppresses them. 1 keeps the brightness proportional to density.

white background

The picture on white paper, the hue kept: for figures and print. It is set on every layer at once. A ramp of several colours is drawn backwards on it, white for no localizations.

lines add up

In tracks only, off by default. Ticked, overlapping lines add as localizations do, so where tracks cross or a slow particle turns back on itself the picture is brighter – a density of tracks. Off, each line is drawn at its own brightness wherever it passes.

player

Closed by default. The window moved through the data, its transport and its recording (How it works, 7).

scan

What the window moves through: frame, time_s and z_nm first, where the table has them; along the line and across the line, in nm from the middle of the line ROI, which must be drawn; then every other numeric attribute. Along or across the line, it runs over the line's length or width.

window

How much of the coordinate is shown at once, in its unit (frames, nm, ...). On auto, a twentieth of the range of what the layers show. Too narrow shows too few localizations to see a structure; too wide changes little from step to step.

step

How far the window moves each step. On auto, a quarter of the window: each localization is shown in four steps running, which makes the transitions smooth. Equal to the window, the steps are side by side, as in a movie of separate frames.

▶

Plays; pressed again, pauses, and the window stays where it is. Space in the render or the 3D window does the same, once the player was the last animation used.

■

Stops and shows everything again.

speed

Steps per second while playing, and the frame rate of a recorded movie. It is at most what the windows can draw: the player waits for the 2D picture, and the 3D view when it is open, to show a step before it takes the next, so no step is skipped. A large table or a large window can therefore play more slowly than this; a recorded movie keeps the frame rate set here.

at the end

What playing does at the last step: start again from the first, turn back, or stop.

record

Which window a recording is of: the 2D picture (as its view, its panels and its pixel) or the 3D view (its projection and its slab), which must be open.

Record...

Asks for a file and writes every step to it – an MP4, a TIFF stack or a GIF, by the extension – drawn by the same renderer as Save image, with the step written in a corner. With the view path playing, a recording of the 3D view follows its path; its pixel size is written for the first step, since a zoom changes it. It can be cancelled.

more

Closed by default, so the player is first of all a window moved through the data. Opened: which layers it narrows, and the 3D view's path.

layers

Which layers the window narrows; the others are shown whole, with their own filters. Untick the layer of all the localizations and leave the tracks' layer ticked, drawn as tracks, to watch tracks grow over the structure. The range scanned is that of the ticked layers. Back to all when a layer is added or removed.

view path

The path the 3D view is moved along (How it works, 8). scan's first choice, none, plays the view path alone: as many steps as its seconds times speed, with nothing narrowed. The list shows each key's time and its box's size in nm. What moves is what the keys differ in: keys with the same view and different boxes move only the box, a face sweeping through the sample, and the box then no longer follows the 2D ROI (the 3D window's follow is switched off), since the path sets it.

+

Adds the 3D view as it is now, with its box, as a key after the selected one, or at the end. Turn, pan, zoom and resize the box in the 3D view for the next key, then press it again.

set

Replaces the selected key with the 3D view as it is now.

−

Removes the selected key.

save...

Writes the path, with its keys and their times, to a .view.yaml file.

load...

Reads a path written by save...; the keys replace those in the list.

seconds

The time from the key before to the selected one; the first key has none. At 0 the key is a cut rather than a move. While a coordinate is scanned, the path is stretched over the scan and only the ratios of the times count.

turn

What add turn turns about – z, x or y of the data through the middle of the screen, or the screen's vertical or horizontal – and how far. z is a turntable: the structure spins while the tilt stays. A whole turn is 360°; negative turns the other way.

zoom

How much larger the picture is at the end of add turn, and over how many seconds. With the turn at 0° it is a zoom alone; with both, the structure turns while one zooms in on it.

over

The time the turn and the zoom take.

ease in and out

Starts and ends the whole path slowly, which looks calmer in a movie. Off for a whole turn played in a loop, which should not slow down where it joins.

add turn

Adds the turn and the zoom to the path, from its last key – or from the 3D view as it is now, which becomes the first key. Several can follow one another: a turn about z, then a zoom in.

axes

Which attribute each axis of the picture is. Set on all layers at once; closed, it is the ordinary picture. While a custom pair is shown, a note says what is across and up, and the scale bars are in the axes' own units.

x

The horizontal axis, and after scale how many units of that attribute one render unit is. auto is the table's x position.

scale

Units of the axis's attribute per render unit. For positions leave it at 1; for photons against frame, fit picks scales that make each axis's 1-99 % fill the picture.

y

The vertical axis and its scale. auto is y.

z (3D)

The third axis in the 3D view and its scale. auto is z.

same scale on both axes

Ticked by itself when the two axes are the same quantity, so that distances stay true; x against z stretched would misrepresent the structure.

fit

Scales each axis so its 1-99 % fills the picture, and frames the view on it. It is done by itself when an attribute is chosen.

reset

Back to x against y, the ordinary picture.

Differences from SMAP

Based on SMAP's layer panel (gui.GuiChannel), its renderer (renderSMAP, drawerSMAP) and its VersatileRenderer plugin (Ries 2020).

References