Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The window

This chapter is a guided tour of the FocusForge window: what each area is for, how to move around a picture, how to keep several stacks open at once and how to give one image its own window on a second screen. It assumes you have opened a stack at least once; if not, start with Your first stack.

The frame list on the right has a chapter of its own, The Images panel.

The window at a glance

Two projects open as tabs; the active one has already been fused.

Going round the window clockwise from the top left:

#WhereWhat it is
1Top left cornerProjects button (four small squares): opens the projects overview, where every open project is a card.
2Top edgeThe tab strip: one tab per open project, then a + tab for opening another.
3Top right cornerMinimize, Maximize and Close for the whole window.
4Below the tabsThe toolbar. In stacking it holds Fuse stack and, during a run, Pause and Cancel; in the editor it holds the function bar: the Brush and Pipette chips, undo, redo and Save checkpoint.
5Middle leftThe Frame pane. Its label shows the file name of the frame you selected, here 02.tif.
6Middle rightThe Composite pane: the fused result, once there is one.
7Right edge, topThe STACKING / EDITOR switch.
8Right edgeThe CHECKPOINTS list with the Export image button.
9Right edge, lower halfThe Images and Settings tabs of the dock, with the frame list showing.
10Bottom edgeThe bottom bar: what the window is doing, the progress of a run, the Overlay switch and the zoom controls.
11Left edge, bottomThe Notifications bell and the Settings gear, which opens the settings window.

The sections below take these areas one at a time.

Tabs: one project each

Every stack you open becomes a project in its own tab. A tab shows the project’s name and, on the right, an x that closes it. Next to the name you may see:

  • UNSAVED — the project holds something that is not written to a project file. See Checkpoints and saving.
  • A small play mark while that tab’s stack is being fused, and a … mark while it waits in line behind another tab’s run. The UNSAVED chip comes back once the run has finished.

The last box in the strip, +, is a tab of its own, as the screenshot at the top of this chapter shows: click it to get the empty start page with Open…, pictured in Opening and fusing in detail, from which you open another stack. When there are more tabs than fit, arrows appear at the ends of the strip to scroll through them.

The tab strip is also the window’s title bar: drag an empty part of it to move the window.

Work on two projects at once

Each tab keeps its own frames, its own selected frame, its own settings, its own checkpoints and its own zoom. Switching tabs never mixes them up.

  1. Open the first stack, then open a second one (with + and Open…, or by dropping a folder onto the + tab).
  2. Click a tab to bring it to the front. The dock, the panes and the bottom bar now show that project only.
  3. Click the other tab to go back. The frame you had selected there is still selected, and the view is where you left it.

The screenshot above shows the same stack open twice: once as a saved, fused project (mantis-512-fused) and once freshly opened (frames, still UNSAVED). The tab title is the project’s name; when two folders have the same name, the header of the frame list (for example “8 frames · 0 excluded”) is a quick way to tell the tabs apart.

Tip: Fusing runs one tab at a time. If you press Fuse stack on a second tab while the first is still fusing, the second waits in line and starts on its own when the first is done.

For an overview of every open project as cards, and for closing tabs and quitting, see Projects, notifications and quitting.

The toolbar

The toolbar changes with what you are doing:

  • In stacking, it holds Fuse stack. While a run is going, the button becomes Pause and Cancel, and Resume once paused; a failed run offers Retry. Opening and fusing in detail walks through a run.
  • In the editor, it holds the function bar: the Brush and Pipette chips, which open the brush settings and the pipette, then undo and redo and Save checkpoint. See Retouching.

The two panes

The canvas in the middle of the window shows two images side by side:

  • The Frame pane (left) shows one source frame: the one selected in the Images panel. Its label is the frame’s file name, for example 00.tif. Click another row in the list to look at another frame. A click on a result in the Images panel’s Results group puts that earlier result here instead.
  • The Composite pane (right) shows the composite, the fused result. Before the first fuse it shows “Not fused yet” and “Fuse stack builds the composite here.” After a fuse it shows the checkpoint selected in CHECKPOINTS.

While a run is live, the Composite pane shows what it is doing instead of the “Not fused yet” card: “Preparing frames” while frames are developed and aligned, “Alignment reused” when the cached alignment serves, the aligned frame as alignment proceeds, a card named “Fusing” (“The result builds here tile by tile.”) until the first tile is fused, and then the result growing tile by tile with its tile grid. A sharpness inset shows where each frame is sharp as the result grows; it fades out two seconds after the last tile, and the finished result crossfades in. Pause keeps the view, Cancel returns the pane to “Not fused yet”, and Discard removes the run’s view along with its result. Each tab keeps its own view, and a Composite pane in its own window shows the same card. The inset is switched off under Sharpness heatmap in Appearance.

A run in progress; the Composite pane shows the card “Preparing frames” until the first frame is aligned. The growing picture passes in a few seconds on a small stack and is not shown here.

The two panes always show the same part of the picture at the same zoom: pan or zoom in one, and the other follows. That makes it easy to compare a detail in one frame with the same detail in the result.

While you zoom out or pan quickly, each pane first shows a coarse version of the whole image and sharpens it a moment later, so you never see empty edges.

The dock

The dock of a fused project, in stacking.

The dock runs down the right side of the window. From top to bottom:

  1. STACKING / EDITOR. The two halves switch between preparing and fusing a stack (STACKING) and retouching its result (EDITOR). EDITOR stays dimmed until the tab holds a fused result. After you keep a fuse the window changes to the editor by itself; click STACKING to get the frame list and the settings back. See Retouching.

  2. CHECKPOINTS. Every fused or retouched result you kept, newest first, named after the fusion method and the time. Before the first fuse it reads “None yet — fuse a stack”. Click a row to show that result in the Composite pane. Export image saves the checkpoint selected in CHECKPOINTS as a TIFF, PNG or JPEG file, or as a DNG file for a project stacked from camera RAW files. See Checkpoints and saving and Exporting an image.

  3. Images and Settings. Two tabs that share the lower part of the dock:

    In the editor, these two tabs give way to a list of results and frames for choosing what the brush paints from (see In the editor).

While a tab’s stack is being fused, its Images and Settings tabs are dimmed: you can look, but changes wait until the run is over. With no project open (the + tab), the dock reads “No project open.”

The bottom bar

The bottom bar while a stack is being aligned.

From left to right:

  • Status. “No project open” on the + tab, “No job running” when nothing is happening, the current stage while a stack is fused (for example “Aligning”), and “fused” with the time once a run you kept has finished.
  • Progress. During a run: frames done (such as “3 of 8”) and a progress bar. Opening and fusing in detail explains the stages.
  • Overlay. A switch and a strength slider for the Z-Map overlay; see See where each pixel came from.
  • Zoom. Zoom out, the zoom readout, Zoom in, and Fit; see the next section.

Zoom and pan

The zoom controls sit at the right end of the bottom bar.

ControlWhat it does
FitShows the whole picture in both panes. The readout then shows the fit zoom, for example “90.2 %”.
Zoom inOne step closer, about the middle of the view.
Zoom outOne step back, about the middle of the view.
ReadoutThe current zoom in percent; “—” when no project is open. 100 % means one image pixel per screen pixel.

Zoom moves along fixed steps. Below the fit zoom there is exactly one step, half of it, which shows the picture smaller with dark space around it. Above the fit zoom the steps are 100 %, 150 %, 200 %, 300 %, 400 % and 500 % (those that are larger than the fit zoom). 500 % is the top: Zoom in does nothing more there, and Zoom out does nothing more at half the fit zoom. A very small image that already fits at more than 500 % cannot be zoomed in at all.

Fit, then Zoom in three times: both panes at 300 %, showing the same spot.

With the mouse:

  • Scroll wheel: zooms in or out at the pointer, so the spot under the pointer stays put. This is the quickest way to inspect a detail.
  • Middle-button drag, or hold Space and drag with the left button: pans the picture. Both panes move together.
  • Shift + scroll wheel: pans sideways (in the editor, it changes the brush size instead).

Click Fit at any time to get the whole picture back.

Step through the frames from the canvas

  • Ctrl + scroll wheel over the canvas steps to the previous or next row of the Images list and shows it in the Frame pane, without reaching for the list. Earlier results are rows too. A plain scroll over a row of the list does the same.
  • Alt + click on the composite selects the frame that pixel came from, so the Frame pane shows the source of that spot. This needs a fused result.

See where each pixel came from

After a fuse, FocusForge knows which frame each pixel of the result was taken from. That record is the Z-Map. The Overlay switch in the bottom bar paints it over the Composite pane, one colour per frame. The colours are the same ones the Images panel shows next to each frame name.

The overlay on at 65 %: each colour marks the frame that part of the result came from.

  1. Make sure the tab holds a fused result. Before the first fuse, the Overlay switch and its slider are dimmed and do nothing.
  2. Click the Overlay switch. Its knob moves to the right and the composite is tinted.
  3. Drag the slider beside it to change how strongly the colours cover the picture. It starts at 65 %; the percentage is shown next to it.
  4. Click the switch again to turn the overlay off. The slider greys out but keeps its position for next time.

Use it to check a fuse. Along the subject, each colour should cover the part of it that was sharp in that frame. A colour you did not expect on a fine edge points at a frame worth a closer look. Speckled patches in a smooth, blurred background are normal: no frame is sharp there, so the choice between them hardly matters. The overlay only tints the view; it is never part of a saved project’s image or an exported file. The Frame pane is never tinted.

Tip: In the editor the same colours tell you which frame your brush paints from. See Retouching.

Put a pane in its own window

On a second monitor it can help to see the source frame and the result at full size each. Either pane can move into a window of its own.

  1. Click the small square icon with four corner marks at the top right of a pane (Undock pane; resting the pointer on it shows that name).
  2. A second window opens with that pane. Its title bar reads “FocusForge — Frame” or “FocusForge — Composite”.
  3. The other pane now fills the whole canvas of the main window.

The main window keeps the Composite pane; its undock icon is hidden while the other pane is out.

The Frame pane in its own window. The icon at the top right brings it back.

Both windows still show the same part of the picture at the same zoom; when their shapes differ, the spare space stays black. Drag the second window by its title bar, and minimize or maximize it with the buttons at its top right.

To bring the pane back, either click the icon at the top right of its pane (Dock pane, also named when the pointer rests on it) or close the second window with its x. The main window shows both panes again.

Note: Only one pane can be in its own window at a time. While one is out, the other pane’s undock icon is hidden rather than dimmed.

On Linux, the second window uses X11 or XWayland when DISPLAY is set, otherwise native Wayland when WAYLAND_DISPLAY is set.

Keyboard and mouse bindings

The canvas responds to these inputs by default:

InputIn stackingIn the editor
Scroll wheelZoom at the pointerZoom at the pointer
Ctrl + scroll wheelPrevious / next result or framePrevious / next result or frame
Shift + scroll wheelPan sidewaysBrush size
Middle-button drag, or Space + left dragPanPan
Alt + left clickSelect the frame under the pointerSelect the frame under the pointer
Left drag—Paint
Ctrl + Z / Ctrl + Shift + Z—Undo / redo

The settings window’s Input map section lists the bindings in effect (see Input map); you can change them in the settings file, as described in Keyboard and mouse bindings.

A few keys are fixed and work anywhere in the window:

KeyDoes
Ctrl + NNew project (asks for a folder)
Ctrl + OOpen a project file
Ctrl + SSave the project
Ctrl + WClose the project in the active tab
EscapeCloses the dialog in front, otherwise the projects overview, the step calculator or Analytics, and closes the settings window
Up / DownSelect the previous / next row (results and frames), when the frame list has the keyboard focus (click a row first)

While the settings window is open, the main window behind it does not react to clicks or zoom; close the settings window first.

Note: The window stays responsive while it loads frames, saves or blends a brush stroke. While you pan, zoom or paint, a running fuse briefly slows down so the view stays smooth, and picks up speed again a quarter of a second after you stop.

Plan a stack with the step calculator

The Step calculator button at the top of the icon bar, on the left edge of the window, opens the calculator over the canvas. It works with or without a project. The toolbar, the dock and the bottom bar stay visible.

The Step calculator with its default values.

The drawing stays centred in the overlay and grows with the window, up to a limit; the boxes keep their size.

The Optics switch at the top left chooses what the lens is described by: Lens (f-stop) or Objective (NA). The boxes on the illustration take the values of your setup:

  • Time per frame (s)
  • Magnification (x), hidden while Objective (NA) is chosen
  • f-stop, or the numerical aperture with Objective (NA)
  • Overlap (fraction of the depth of field)
  • Depth range (mm)

The plan updates on every keystroke. A comma works as the decimal point. To replace a value, clear the box first, then type the new one. A box holding a value that is out of range or is not a number shows a line of text under it. The calculated values keep the last valid plan until the box is fixed.

The SUMMARY band repeats the plan in two rows. ENTERED lists your values. CALCULATED lists the numerical aperture (with the lens only), the depth of field, the step between frames, the number of frames and the total duration of the shoot.

To close the calculator, click the Step calculator button again, click Close at the top right of the overlay, or press Escape. Only one full-canvas overlay is open at a time: opening the projects overview, the notification center or Analytics closes the calculator.

Count the sharp areas of each frame

The Analytics button sits under the Step calculator button in the icon bar. It opens Analytics over the canvas for the frames of the selected tab. With no project open, Analytics says “No stack loaded” and asks you to load a stack to count its sharp areas; opening a stack starts the count.

Analytics for the eight frames of the mantis stack, with 03.tif selected. This small sample has few sharp areas, so most segments are pale and read 0 %.

At the top, the SHARPNESS OVERLAP bar shows how much neighbouring frames agree on where the sharp areas are; see Check the overlap between neighbouring frames. Below it, the heading SHARP AREAS PER IMAGE is followed by the line “Image areas that are sharpest in this image”. Each frame has one row, in the order of the frame list (excluded frames are listed too):

  • the frame’s colour chip,
  • its file name,
  • a bar, as long as the frame’s count compared with the largest count; all bars stay empty when every count is 0,
  • the count itself: the number of image areas where this frame is the sharpest.

While the counting runs, every frame is already listed. A row whose count is not final shows a bar and a turning marker in place of its count: the bar sweeps until the first results arrive, then fills as the counts grow, and the marker stays until the count is complete. If the count fails, the rows give way to the red heading “Counting failed” and the error message. The count starts in the background as soon as a stack is loaded, and closing Analytics does not stop it. It waits while a stacking or export job runs, pauses while you scroll through camera RAW frames in the editor, and starts over when the stack’s frame list changes.

Pick a frame in Analytics

Click a frame’s row, or its number under the SHARPNESS OVERLAP bar (the tick above the number and the gap between two segments work too). The frame is selected as if you had clicked it in the frame list, so in the editor it also becomes the brush source. Analytics stays open; close it to look at the frame. A white line with a small triangle on the bar, and a tinted row, mark the selected frame. A click inside a segment selects nothing, and the bar takes no clicks until the count is complete.

Check the overlap between neighbouring frames

The SHARPNESS OVERLAP bar sits above the rows, with the caption “Share of sharp areas that neighbouring images have in common”. It has one segment for each pair of neighbouring frames in the list, so eight frames give seven segments, with the image numbers 1 to 8 under the bar. A segment’s colour goes from red through amber to green, and a legend at the right of the caption reads 0 %, 5 % and 20 %+. The whole-percent figure on a segment is the share of sharp areas that the two frames have in common.

A low share between two neighbours can mean the focus step between them was too large and nothing is sharp in both: a focus gap that the fused result cannot fill. Shoot the stack again with a smaller step, or add a frame there (see Shooting practice).

  • A segment shows “–” and is hollow when neither of the two frames has a sharp area.
  • A pale segment means fewer than 10 sharp areas in the two frames together, so the share is not reliable.

Rest the pointer on a segment to read it. The first line names the pair, for example “Images 3 and 4 · 02.tif, 03.tif”, and the second line reads one of:

Second lineMeaning
“N % of their sharp areas overlap”Normal.
“N % – likely a gap in focus here”The share is under 5 %.
“N % – too few sharp areas to be sure”The pale case above.
“No sharp areas in either image”The hollow case above.

With a single frame there is no neighbour, and no bar is shown.

The same numbers are available from a terminal. sharp-areas prints the counts and the overlap of each pair of neighbours:

focusforge-cli sharp-areas path/to/frames/

sharpness-map writes one map per frame, all on one scale, so that the same value means the same sharpness in every map:

focusforge-cli sharpness-map path/to/frames/ --out maps/

Add --composite <image> to map a fused image on the same scale. See sharp-areas and sharpness-map in the command-line reference.

To close Analytics, click the Analytics button again, click Close at the top right of the overlay, or press Escape. As with the step calculator, opening another full-canvas overlay closes it.

To open Analytics when the program starts, add --analytics to the folder you open:

focusforge-gui --open <folder> --analytics

Where to find the rest

Earlier versions of this page also described launching, fusing, saving and the settings window. Those topics now have chapters of their own:

Launch options

Opening folders and projects, the empty start page, dropping files and the focusforge-gui start-up flags: Opening and fusing in detail.

Fusing a stack

Fuse stack, the run’s stages, Pause, Cancel, Retry and the Keep or Discard question: Opening and fusing in detail.

Settings

The dock’s Settings tab (PREPARE, ALIGN, FUSE, FINISH): Stacking settings and Alignment.

Retouching a result

The editor, the brush and the pipette: Retouching.

Saving a project

Checkpoints

The CHECKPOINTS list, Save project and the UNSAVED chip: Checkpoints and saving.

Exporting an image

Export image and its dialog: Exporting an image.

Switching between projects

The projects overview, closing a tab and quitting with unsaved work: Projects, notifications and quitting.

Notifications

The bell, the notification center, pop-up messages and desktop banners: Projects, notifications and quitting.

The settings window

Performance, Appearance, Storage, Input map, Diagnostics and About: The settings window.

The settings file

The settings.toml file behind them, and how to use another one: The settings file.