Skip to content

GUI parameter reference

Every field of the parameter dialogs, with the text the GUI shows when the mouse rests on it. How to choose between the methods and which fields matter for each: GUI parameters guide.

Main parameters

General

Field YAML key What it does, when to change it
Number of cameras num_cams How many cameras the rig has (1 to 4).
Split images into 4? ptv.splitter One sensor records all four views (an image splitter): every frame is one image, cut into four views before detection. Uses the image name of camera 1 only. Calibration has its own switch (Calibration parameters).
Splitter view order (TL,TR,BL,BR) ptv.splitter_order Which camera each quadrant is, in the order top-left, top-right, bottom-left, bottom-right. Calibration uses the same order.
Accept only points seen from all cameras? ptv.allcam_flag Keep only points seen by every camera: fewest ghost points, but particles hidden in one camera are lost. Off for most experiments.
Include pairs ptv.pair_flag Also accept points seen by only two cameras: more points, but more ghosts (two rays always nearly meet). Useful with 2-3 cameras or when particles are often hidden.
3D from rays (lsq = nearest all rays) ptv.triangulation How a 3D point is computed from its camera rays. lsq: the point nearest to all rays (recommended; never worse than pairs in our tests, better with opposite cameras). pairs: the classic average of pairwise midpoints. weighted: pairs weighted by the angle between rays.
Name of 1. image ptv.img_name Image of camera 1 shown after Start, used to check detection.
Name of 2. image ptv.img_name Image of camera 2 shown after Start, used to check detection.
Name of 3. image ptv.img_name Image of camera 3 shown after Start, used to check detection.
Name of 4. image ptv.img_name Image of camera 4 shown after Start, used to check detection.
Calibration data for 1. image ptv.img_cal Calibration of camera 1: the base name of its .ori and .addpar files.
Calibration data for 2. image ptv.img_cal Calibration of camera 2: the base name of its .ori and .addpar files.
Calibration data for 3. image ptv.img_cal Calibration of camera 3: the base name of its .ori and .addpar files.
Calibration data for 4. image ptv.img_cal Calibration of camera 4: the base name of its .ori and .addpar files.

Refractive Indices

Field YAML key What it does, when to change it
Air (n) ptv.mmp_n1 Refractive index where the cameras are (air: 1.0).
Glass (n) ptv.mmp_n2 Refractive index of the window (glass about 1.5, acrylic 1.49).
Water (n) ptv.mmp_n3 Refractive index of the fluid (water 1.33). Equal to air for no refraction.
Glass thickness (mm) ptv.mmp_d Thickness of the window [mm].

Particle recognition

Field YAML key What it does, when to change it
1st image (0-255) targ_rec.gvthres Grey threshold of camera 1: pixels brighter than this (after the high-pass) can belong to a particle. Set just above the background noise; check with Detection.
2nd image (0-255) targ_rec.gvthres Grey threshold of camera 2 (see camera 1).
3rd image (0-255) targ_rec.gvthres Grey threshold of camera 3 (see camera 1).
4th image (0-255) targ_rec.gvthres Grey threshold of camera 4 (see camera 1).
min npix (px) targ_rec.nnmin Smallest particle, in pixels: smaller blobs are noise and dropped.
max npix (px) targ_rec.nnmax Largest particle, in pixels: larger blobs (reflections, bubbles) are dropped.
min npix x (px) targ_rec.nxmin Smallest width of a particle [px].
max npix x (px) targ_rec.nxmax Largest width of a particle [px].
min npix y (px) targ_rec.nymin Smallest height of a particle [px].
max npix y (px) targ_rec.nymax Largest height of a particle [px].
Sum of grey (0-255 sum) targ_rec.sumg_min Smallest total brightness of a particle (sum of its grey values): drops faint noise blobs.
Tolerable discont. (grey) targ_rec.disco How much the brightness may rise again inside one blob before it is split into two particles. Smaller: touching particles are split; larger: they stay one blob.
Size of crosses (px) targ_rec.cr_sz Size of the crosses that mark detected particles [px].
Subtract mask masking.mask_flag Subtract a fixed background image from every frame before detection (walls, reflections that never move).
Base name for the mask masking.mask_base_name The background images, with %d for the camera number (e.g. img/background_%d.tif).
High pass filter ptv.hp_flag Remove slow brightness changes (uneven light) before detection. On for most images; off if the background is already black.
High pass filter size (px) ptv.highpass_size Side [px] of the box whose mean is subtracted by the high-pass filter. A few times the particle diameter: smaller removes the particles' own light, larger leaves uneven background. Default 25.
Negative images? ptv.negative The particles are dark on a bright background: invert the images first.

Sequence

Field YAML key What it does, when to change it
First sequence image sequence.first First frame to process.
Last sequence image sequence.last Last frame to process. Try a few frames first, then the whole recording.
Basename for 1. sequence sequence.base_name Image names of camera 1, with %d for the frame number (e.g. img/cam1.%d or img/cam1_%05d.tif).
Basename for 2. sequence sequence.base_name Image names of camera 2 (see camera 1). Not used in splitter mode.
Basename for 3. sequence sequence.base_name Image names of camera 3 (see camera 1). Not used in splitter mode.
Basename for 4. sequence sequence.base_name Image names of camera 4 (see camera 1). Not used in splitter mode.
Parallel Pre-processing ptv.parallel_preprocess Read and filter the images of the frames in parallel processes (faster on long recordings; same result).
Number of workers (0 for auto) ptv.num_workers Processes for the parallel preprocessing; 0 = as many as the computer has.
Results store (.zarr) output.store The Zarr store holding this run's results, relative to the YAML's folder. Give each parameter set its own, or runs overwrite each other. Default res/run.zarr.

Observation Volume

Field YAML key What it does, when to change it
Xmin (mm) criteria.X_lay Left end of the measured volume along x [mm].
Xmax (mm) criteria.X_lay Right end of the measured volume along x [mm].
Zmin (mm) criteria.Zmin_lay Nearest depth (z) of the volume at the left end [mm]. Matching searches only between the nearest and farthest depth: cover the lit volume with a small margin. Too large: more ghosts and slower; too small: particles near the edges are lost.
Zmin (mm) criteria.Zmin_lay Nearest depth (z) of the volume at the right end [mm].
Zmax (mm) criteria.Zmax_lay Farthest depth (z) of the volume at the left end [mm].
Zmax (mm) criteria.Zmax_lay Farthest depth (z) of the volume at the right end [mm].

Criteria for correspondences

Field YAML key What it does, when to change it
min corr for ratio nx criteria.cnx Smallest ratio (0-1) of the particle widths in two cameras for a match. Near 0 accepts any; raise it to reject candidates whose size differs a lot.
min corr for ratio ny criteria.cny Smallest ratio (0-1) of the particle heights in two cameras for a match.
min corr for ratio npix criteria.cn Smallest ratio (0-1) of the particle sizes (pixels) in two cameras.
sum of gv criteria.csumg Smallest ratio (0-1) of the particle brightness in two cameras.
min for weighted correlation criteria.corrmin Smallest total match quality to accept a combination of cameras; raise it to drop weak matches (ghosts), lower it to keep more points.
eps0, epipolar band (mm) criteria.eps0 Half-width of the band around the epipolar line in which candidates are searched [mm on the sensor]. A few times the calibration's reprojection error: too small misses matches, too large makes ghosts.
Epipolar candidates per dot (0 = all) criteria.candidate_limit How many candidates along the epipolar line are kept per dot and camera pair, the best first. Default 200; 0 keeps all (slower, more memory). Raise it only for very dense images.
Shared-blob second pass (recover overlapping particles) ptv.shared_pass Second matching pass for particles that overlap in an image (one blob holds two). More points and longer tracks when 'Suggest from my data' (Tracking parameters) reports 10 % shared blobs or more; nothing changes on clean data. +10-30 % matching time.
Light check on 3-cam points (drop ghosts) ptv.light_check Drop points seen by all cameras but one when the missing camera shows no light there (a ghost). Goes with the shared-blob pass; removes 8-10 % of the points on real recordings, some of them real.

Detection methods (Main parameters → Sequence → Detection)

Standard: threshold and size limits

Name in the YAML: plugins.selected_detection: default.

Finds the particles in every camera image with the grey thresholds and size limits under Particle recognition. Splits each image into four views when the splitter is on (General).

No options of its own.

Bubbles: local-contrast detection, glare spots merged

Name in the YAML: plugins.selected_detection: bubble.

For faint bubbles and glare points (helium-filled soap bubbles at large distance): finds pixels well above their local background and merges the glare spots of each bubble.

Options, in the bubble_detection: section:

Detection

Field YAML key Default What it does, when to change it
Background window [px] win 25 Side of the window the local background mean and spread are taken over. Allowed: >= 3.
Contrast threshold [local sigma] z_thresh 7.0 A pixel is part of a bubble when it is this many local standard deviations above the local background. Allowed: > 0.
Glare merge radius [px] merge_radius 4 Glare spots closer than this are merged into one bubble. Allowed: >= 0.
Smallest blob [px] nnmin 1 Blobs with fewer pixels are dropped. Allowed: >= 1.
Largest blob [px] nnmax 5000 Blobs with more pixels are dropped. Allowed: >= 1.
Low-pass box [px] (1 = off) lowpass_dim 1 Box filter before detection; 3 suppresses single-pixel sensor noise and steadies the centres of small bubbles. Allowed: >= 1.
High-pass mode filter_hp 0 High-pass mode of the image preprocessing (0 = default). Allowed: >= 0.

Contour mask: keep only the largest smooth region

Name in the YAML: plugins.selected_detection: contour.

Detection plugin that masks each frame to its largest smooth contour before detection.

No options of its own.

Remove background (rembg) before detection

Name in the YAML: plugins.selected_detection: rembg.

Removes the background of every image with the rembg neural network before the standard particle search. Needs openptv2[rembg].

No options of its own.

Remove background (rembg), record mask area

Name in the YAML: plugins.selected_detection: rembg_contour.

Removes the background with rembg, records the mask area of each frame in res/mask_areas.csv, then searches them as the standard method does. Needs openptv2[rembg].

No options of its own.

Keep the particles already in the store

Name in the YAML: plugins.selected_detection: existing.

Does not search the images: matching uses the particles already stored for these frames (from an earlier detection run, or written there by another program).

No options of its own.

Correspondence methods (Main parameters → Sequence → Correspondence)

Standard: epipolar matching, 3D positions

Name in the YAML: plugins.selected_correspondence: default.

Matches the particles across cameras along epipolar lines (Criteria for correspondences), with the cameras of the .ori calibration, and computes their 3D positions.

No options of its own.

Tracking parameters

How far a particle can move between frames (all trackers)

In the track: section.

Field YAML key Default What it does, when to change it
x min [mm/frame] dvxmin -15.5 Smallest displacement along x from one frame to the next (negative: moving towards -x). About 3 times the typical step (Suggest from my data measures it), or the largest real step: too small loses fast particles, too large adds candidates.
x max [mm/frame] dvxmax 15.5 Largest displacement along x from one frame to the next (see min).
y min [mm/frame] dvymin -15.5 Smallest displacement along y from one frame to the next (negative: moving towards -y). About 3 times the typical step (Suggest from my data measures it), or the largest real step: too small loses fast particles, too large adds candidates.
y max [mm/frame] dvymax 15.5 Largest displacement along y from one frame to the next (see min).
z min [mm/frame] dvzmin -15.5 Smallest displacement along z from one frame to the next (negative: moving towards -z). About 3 times the typical step (Suggest from my data measures it), or the largest real step: too small loses fast particles, too large adds candidates.
z max [mm/frame] dvzmax 15.5 Largest displacement along z from one frame to the next (see min).
Largest turn [gon] angle 120.0 Largest change of direction between two steps of a track, in gon (100 = right angle, 200 = reversing). Used by trackcorr, and by fast_3d with its limit switch on.
Largest velocity change [mm/frame] dacc 5.5 Largest change of the displacement between two steps of a track. Used by trackcorr, and by fast_3d with its limit switch on. Too tight loses true links: take it loose, from a first run.
  • two_phase: Two-phase searches a sphere: its radius is the largest of the six displacement bounds, or its own 'Search radius' option if set. The largest turn and velocity change are not used (it confirms links with the next frames).
  • trackcorr: Trackcorr uses all eight: the box around the predicted position, the largest turn and the largest velocity change.
  • fast_3d: Fast 3D uses the six displacement bounds. The largest turn and velocity change count only with 'Limit by largest turn and velocity change' (its options, below).

Two-phase (default: 3D candidates, image cost, confirmation)

Name in the YAML: track.tracker: two_phase.

Builds 3D candidates, scores each link by its 3D distance and by how well it projects onto the camera images, and confirms links with the next frames. Use it for real or noisy data: the most accurate and the fastest of the three. Set the search box; the defaults of its options are right for most data.

Options, in the track: section:

Linking

Field YAML key Default What it does, when to change it
Search radius [mm/frame] v_max 0.0 (off) How far a particle may move between frames. 0: the largest of the six displacement bounds of the search box. Set it to search a sphere of another size than the box. Allowed: >= 0.
Image cost weight leaf_weight 1.0 How much a link's score counts how well the 3D point projects onto the particles in the camera images (1) against its 3D distance alone (0). Keep 1 with a good calibration; lower it (0 to 0.5) when the calibration is poor (large reprojection error). Allowed: >= 0.
Largest gap [steps] max_gap 2 A track may miss this many steps and continue on its prediction; then it ends. 1 = no bridging, 2 bridges one missing frame. Raise to 3 when particles often drop out for a frame or two (weak light, overlaps). Allowed: >= 0.
Backward search radius (0 = the same) bwd_v_max 0.0 (off) Search radius of the backward pass; a slightly wider one lets it reach fast particles the forward pass missed. Allowed: >= 0.
Run both directions in parallel parallel_directions False Run the forward and backward passes in two processes: faster, the same result.

Overlapping particles

Field YAML key Default What it does, when to change it
Correct points in shared blobs shared_correction False Where two particles overlap in a camera image (one blob for two), re-estimate their points from their tracks and link again. Use it when 'Suggest from my data' reports 10 % shared blobs or more (dense seeding, large particles): velocity error -13 to -40 % on the benchmark. About 3-4 times the tracking time; below 8 % it changes nothing.
Merged-blob rounds (0 = off) holistic_rounds 0 The full merged-blob loop: estimate each particle's own centre from its track, triangulate again and re-link, this many times. Slower than 'Correct points in shared blobs', which gives most of its gain; try 1-2 only for crowded data after that one. Allowed: >= 0.

Spatial consensus

Field YAML key Default What it does, when to change it
Use the neighbours' motion vfc_mode off Compare each link with how the particles around it move, to remove wrong links (ghosts) in smooth flows. Off for most data. Start with 'After linking'; add 'Before linking' with a gate when many tracks still jump between particles. Allowed: one of off (Off), pre (Before linking (drop candidates)), post (After linking (drop links)), both (Both).
Neighbourhood radius [mm] vfc_radius 10.0 How far the neighbours are taken from. A few particle spacings: large enough for 3 or more neighbours, small enough that the flow is nearly the same across it. Allowed: > 0.
Fewest neighbours vfc_min_neighbors 3 A point with fewer neighbours is not checked. Allowed: >= 1.
Gate before linking [mm/frame] (0 = off) vfc_gate 0.0 (off) Before linking, drop a candidate whose motion differs from its neighbours' by more than this. Use 6-8 times the noise of the 3D positions: a gate near the noise drops the right candidates too. Allowed: >= 0.
Smallest tolerance after linking [mm/frame] vfc_post_min_tol 0.5 After linking, a link is dropped when its motion differs from its neighbours' by more than 3 times their spread, and never for less than this. Allowed: >= 0.
Start velocities from neighbours vfc_bootstrap False Give the tracks that start in the first frame the velocity of their neighbourhood, so their first links are predicted too. Helps short recordings and fast flows.
Fit the local velocity gradient vfc_affine False Compare with a fit of the neighbours' motion that includes rotation and shear (no volume change) instead of their median. Better in vortices and shear layers; needs 6 neighbours.

Ghost points and confirmation

Field YAML key Default What it does, when to change it
Ghost limit to start a track q_seed 0.2 (off) A point more likely than this to be a ghost cannot start a trajectory. 0.2 normally; 0.15 if more than 45 % of the points are seen by only 3 cameras; 0.3 if fewer than 20 %. 0: off. Allowed: >= 0, <= 1.
Track length before doubtful points q_young 3 A trajectory with fewer points than this cannot continue onto a doubtful point. 3 normally; 6 when accuracy matters more than the number of points. Allowed: >= 0.
Ghost probability from q_model rcm_blob What tells a ghost from a real point. Leave out the brightness if the blobs have no usable brightness. Allowed: one of rcm_blob (ray distance, cameras and blob brightness), rcm (ray distance and cameras only).
Confirmation tolerance [mm/frame] confirm_tol auto A link survives only if the next step continues within this change. auto: the tracker chooses (right for sparse, noisy data); 0.3 for dense or frame-skipped data; empty: no confirmation.
Confirm track ends confirm_ends True A track may not end by stepping onto a stranger. The most valuable part of the confirmation: keep it on.
Brightness change limit (0 = off) blob_gate 0.0 (off) Refuse a link whose blob brightness changes by more than this (log units). 0.5 for frame-skipped or slow-camera data (steps of 0.2 mm or more); otherwise off. Allowed: >= 0.

Trackcorr (legacy algorithm: 2D search in the images)

Name in the YAML: track.tracker: trackcorr.

The classic openptv algorithm: predicts each particle, projects the prediction into every camera and searches the 2D targets there. Use it to reproduce a result of the old OpenPTV; set the search box, the largest turn and the largest velocity change.

Options, in the track: section:

Linking

Field YAML key Default What it does, when to change it
Post-process postprocess True After linking, keep a link only if it is found from both ends (reciprocity) and bridge short gaps. Keep it on; switch off only to compare with raw links.
Add particles flagNewParticles True Where a track's prediction finds unused detections in the images but no 3D point, add a new point there. Part of the legacy algorithm; keep on to reproduce old OpenPTV results.

Corrective pass

Field YAML key Default What it does, when to change it
Corrective passes (0 = off) corrective_passes 0 After tracking, extend tracks into detections the sequence step left unused: each track end is predicted into the next frame and free blobs there are matched again. Longer tracks; 1 pass is usually enough. Needs the run store (not ASCII files). Allowed: >= 0.
Release ghosts corrective_release_ghosts True Blobs used only by points no track accepted (mostly ghosts) count as free, so a track can take them.
Extend track ends too corrective_forward True Extend tracks forward from where they end, not only backward from where they start.

Fast 3D (3D points only, fastest)

Name in the YAML: track.tracker: fast_3d.

Links the 3D points of consecutive frames only, without looking at the images. Use it for exact data (simulations, no noise, no overlapping particles), where it keeps every point. Set the search box; the turn and velocity change only count with 'Limit by ...'.

Options, in the track: section:

Linking

Field YAML key Default What it does, when to change it
Post-process postprocess True After linking, keep a link only if it is found from both ends (reciprocity) and bridge short gaps. Keep it on; switch off only to compare with raw links.
Epipolar penalty (0 = off) epi_weight 0.0 Add a penalty for links whose points disagree with the camera images (the old 'hybrid' tracker: 1). Measured effect is tiny; keep 0. Allowed: >= 0.
Limit by largest turn and velocity change accel_gate False Also refuse links beyond the largest turn and velocity change of the search box. Off: only the six displacement bounds limit the links. Switch on with a loose velocity change taken from a first run; a tight one loses true links.

Corrective pass

Field YAML key Default What it does, when to change it
Corrective passes (0 = off) corrective_passes 0 After tracking, extend tracks into detections the sequence step left unused: each track end is predicted into the next frame and free blobs there are matched again. Longer tracks; 1 pass is usually enough. Needs the run store (not ASCII files). Allowed: >= 0.
Release ghosts corrective_release_ghosts True Blobs used only by points no track accepted (mostly ghosts) count as free, so a track can take them.
Extend track ends too corrective_forward True Extend tracks forward from where they end, not only backward from where they start.

Set only in the YAML

Expert settings without a field: there is no measured advice for choosing them. Everything else a run reads is in a dialog.

YAML key What it does
track.cost_mode how a candidate's distance is measured (default projected)
track.use_velocity predict with the track's velocity
track.allow_shared let several tracks claim one point
track.max_shared at most this many tracks on one point
track.share_tol how much worse a shared claim may be
track.max_group_size largest group solved exactly; larger ones greedily
track.confirm_auto automatic tolerance = this times the median change (default 8)
track.confirm_auto_max_neighbours use the automatic tolerance only up to this density
track.confirm_auto_min_ratio use it only when noise dominates by at least this ratio
track.confirm_auto_radius radius [mm] for the density above
track.noise_aware_confirm loosen the confirmation where the 3D point is uncertain
track.q_weight weight of the ghost probability in a link's score
track.vfc_weight weight of the neighbours' motion in a link's score
track.vfc_post_k outlier limit of the after-linking filter
track.vfc_post_reject_cold_start also filter a track's first link
track.vfc_affine_min_neighbors neighbours needed for the affine fit
track.vfc_bootstrap_grid_size bootstrap: grid cell [mm]
track.vfc_bootstrap_passes bootstrap: passes
track.vfc_bootstrap_shift_ratio bootstrap: accepted shift ratio
track.vfc_bootstrap_max_neighbors bootstrap: neighbours used
track.corrective_radius_px how close [px] a free blob must be to a track's prediction (default 3)
track.corrective_predictor poly or linear prediction
track.corrective_allow_shared_targets allow two tracks to take one blob
track.holistic_births create new points from unexplained blobs
track.holistic_birth_bright brightness needed for a new point
track.holistic_extend extend tracks between rounds
track.holistic_first_forward first round forward only
track.holistic_min_resid smallest image residual treated as unexplained
track.holistic_observations keep per-camera observations
track.holistic_partner_min_len shortest track used to split a blob
track.holistic_pixel_fit fit the blob pixels, not only centres
track.holistic_positions re-estimate 3D positions
track.holistic_refine_rounds refinement rounds
track.holistic_relink link again after each round
track.holistic_shared_only treat shared blobs only

Calibration parameters

Opened from the calibration window (Edit calibration parameters) or by right-clicking the run in the main window.

Images Data

Field YAML key What it does, when to change it
Calibration picture camera 1 cal_ori.img_cal_name Image of the calibration target seen by camera 1 (e.g. cal/cam1.tif). Detection finds the target's dots in it.
Calibration picture camera 2 cal_ori.img_cal_name Image of the calibration target seen by camera 2.
Calibration picture camera 3 cal_ori.img_cal_name Image of the calibration target seen by camera 3.
Calibration picture camera 4 cal_ori.img_cal_name Image of the calibration target seen by camera 4.
Orientation data picture camera 1 cal_ori.img_ori The calibration result of camera 1 (e.g. cal/cam1.tif.ori): the camera's position and angles. The lens and sensor terms go to the .addpar file of the same name. The orientation buttons overwrite both and keep a .bck copy.
Orientation data picture camera 2 cal_ori.img_ori The calibration result of camera 2 (.ori, with its .addpar).
Orientation data picture camera 3 cal_ori.img_ori The calibration result of camera 3 (.ori, with its .addpar).
Orientation data picture camera 4 cal_ori.img_ori The calibration result of camera 4 (.ori, with its .addpar).
File of Coordinates on plate cal_ori.fixp_name The calibration target's known points: one line per dot, 'id x y z' in mm. The ids are the numbers P1-P4 refer to (Manual pre-orientation).
Split calibration image into 4? cal_ori.cal_splitter One sensor records all four views (an image splitter): the calibration image of camera 1 is cut into four views, in the view order of Main parameters. Separate from the splitter switch of Main parameters; turn on both for a splitter rig. Also in the calibration window.

Calibration Data Detection

Field YAML key What it does, when to change it
Image size horizontal ptv.imx Image width [px]. Shared with the whole run.
Image size vertical ptv.imy Image height [px]. Shared with the whole run.
Pixel size horizontal ptv.pix_x Pixel width on the sensor [mm] (e.g. 0.01 for 10 um pixels). From the camera's data sheet, times the binning. Shared with the whole run.
Pixel size vertical ptv.pix_y Pixel height on the sensor [mm]. Shared with the whole run.
Grey threshold, camera 1 detect_plate.gvth_1 Grey threshold for the target's dots in camera 1: pixels brighter than this can belong to a dot. Separate from the particle thresholds (Main parameters). Check with Detection in the calibration window.
Grey threshold, camera 2 detect_plate.gvth_2 Grey threshold for the target's dots in camera 2.
Grey threshold, camera 3 detect_plate.gvth_3 Grey threshold for the target's dots in camera 3.
Grey threshold, camera 4 detect_plate.gvth_4 Grey threshold for the target's dots in camera 4.
min npix (px) detect_plate.min_npix Smallest dot, in pixels: smaller blobs are noise and dropped.
min npix in x (px) detect_plate.min_npix_x Smallest width of a dot [px].
min npix in y (px) detect_plate.min_npix_y Smallest height of a dot [px].
max npix (px) detect_plate.max_npix Largest dot, in pixels: larger blobs (reflections, the target's edge, labels) are dropped.
max npix in x (px) detect_plate.max_npix_x Largest width of a dot [px].
max npix in y (px) detect_plate.max_npix_y Largest height of a dot [px].
Tolerable discont. (grey) detect_plate.tol_dis How much the brightness may rise again inside one blob before it is split into two dots. Dots on a target are well apart, so a large value is fine.
Sum of grey (0-255 sum) detect_plate.sum_grey Smallest total brightness of a dot (sum of its grey values): drops faint specks.
Size of crosses (px) detect_plate.size_cross Size of the crosses that mark detected dots [px].
Sortgrid search radius (px) sortgrid.radius Calibration only (particle images have their own settings). How far [px] a detected dot of the target may be from the projected position of its known point to be matched to it. About 3 times the error of the current camera guess, and below half the distance between neighbouring dots (Sortgrid prints it per camera): 8-10 px for a converged calibration on the test targets, about 15 while the first guess is rough. Too large: a known point whose dot was missed takes a neighbour ('used twice'). Too small: points near the edges are dropped. 0 or missing: 10.

Manual pre-orientation

Field YAML key What it does, when to change it
Camera 1, P1 man_ori.nr Camera 1: the id (from the target's point file) of the dot you click as point 1 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 1, P2 man_ori.nr Camera 1: the id (from the target's point file) of the dot you click as point 2 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 1, P3 man_ori.nr Camera 1: the id (from the target's point file) of the dot you click as point 3 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 1, P4 man_ori.nr Camera 1: the id (from the target's point file) of the dot you click as point 4 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 2, P1 man_ori.nr Camera 2: the id (from the target's point file) of the dot you click as point 1 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 2, P2 man_ori.nr Camera 2: the id (from the target's point file) of the dot you click as point 2 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 2, P3 man_ori.nr Camera 2: the id (from the target's point file) of the dot you click as point 3 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 2, P4 man_ori.nr Camera 2: the id (from the target's point file) of the dot you click as point 4 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 3, P1 man_ori.nr Camera 3: the id (from the target's point file) of the dot you click as point 1 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 3, P2 man_ori.nr Camera 3: the id (from the target's point file) of the dot you click as point 2 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 3, P3 man_ori.nr Camera 3: the id (from the target's point file) of the dot you click as point 3 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 3, P4 man_ori.nr Camera 3: the id (from the target's point file) of the dot you click as point 4 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 4, P1 man_ori.nr Camera 4: the id (from the target's point file) of the dot you click as point 1 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 4, P2 man_ori.nr Camera 4: the id (from the target's point file) of the dot you click as point 2 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 4, P3 man_ori.nr Camera 4: the id (from the target's point file) of the dot you click as point 3 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.
Camera 4, P4 man_ori.nr Camera 4: the id (from the target's point file) of the dot you click as point 4 in Manual orient. Pick four dots far apart, not on one line, visible in every camera. Orient. with file and Raw orientation compute the first camera position from them.

Calibration Orientation Param.

Field YAML key What it does, when to change it
Calibrate with different Z examine.Examine_Flag Multi-plane calibration, step 1: a flat target recorded at several known depths. With this on, Fine tuning also writes the matched points of the current plane (.crd: image, .fix: known 3D) next to the .ori file (cal/cam1.tif.crd ...). Copy them to each plane's name (multi_planes.plane_name + camera number, e.g. cal/plane1_cam1.tif.crd) for step 2.
Combine preprocessed planes examine.Combine_Flag Multi-plane calibration, step 2: Fine tuning fits all the planes listed in the multi_planes section of the YAML together, as one 3D target, from the .crd/.fix files of step 1. The .ori names must contain cam1, cam2, ...
Plane file names (comma separated) multi_planes.plane_name Multi-plane calibration: the file name of each plane without the camera number, comma separated (cal/plane1_cam, cal/plane2_cam). Each needs .tif.fix and .tif.crd. multi_planes.n_planes is the number of names.
cc orient.cc Fit the focal length (camera constant). Needs a target that spans depth (a 3D target or several planes): from one flat plane the focal length trades off with the distance to it. Usually fitted together with xh and yh.
xh orient.xh Fit the principal point in x (where the optical axis meets the sensor). With cc and yh.
yh orient.yh Fit the principal point in y. With cc and xh.
k1 orient.k1 Fit radial lens distortion, first term. The next step after cc, xh, yh when the residuals grow towards the image edges. Needs dots near the edges; from a single flat plane it can bend the edges wrongly.
k2 orient.k2 Fit radial lens distortion, second term. Together with k1.
k3 orient.k3 Fit radial lens distortion, third term. Only for strong distortion (wide-angle lenses) and many dots across the image.
p1 orient.p1 Fit decentering distortion (lens not centred on the sensor). Last, with k3, only if the residuals keep a pattern.
p2 orient.p2 Fit decentering distortion, second term. With p1.
scale orient.scale Fit a horizontal pixel scale. For old analog cameras and frame grabbers; keep off for digital cameras (square pixels).
shear orient.shear Fit a shear of the sensor axes. For old analog cameras; keep off for digital cameras.
interf (fit glass-interface tilt) orient.interf Fit the tilt of the window between camera and fluid. Try it last, when a camera looks through a flat window or a splitter that may be tilted and its residuals stay high: on a real splitter rig it took one camera from 2.4 to 1.1 px.

Dumbbell calibration parameters

Field YAML key What it does, when to change it
dumbbell epsilon (mm) dumbbell.dumbbell_eps Orientation from dumbbell: frames whose reconstructed dumbbell length differs from the true length by more than this [mm] are dropped. 0 keeps all.
dumbbell scale (mm) dumbbell.dumbbell_scale Orientation from dumbbell: the true distance between the two balls [mm]. It sets the scale of the calibration; must be above 0.
weight for dumbbell penalty dumbbell.dumbbell_penalty_weight Orientation from dumbbell: how much a wrong dumbbell length counts against the image residuals. Larger keeps the scale closer to the true length; 0 ignores the length (no scale).
step size through sequence dumbbell.dumbbell_step Use every n-th frame. Used by the standalone dumbbell tool only; the calibration window uses every frame of the sequence range.
fixed camera (0=auto) dumbbell.dumbbell_fixed_camera Orientation from dumbbell: the camera that stays as it is, the reference for the others. 0 = the camera that saw both balls in the most frames.

Shaking calibration parameters

Field YAML key What it does, when to change it
shaking first frame shaking.shaking_first_frame First frame of the particles used by Tracer self-cal and Orientation with particles (after a sequence and tracking run).
shaking last frame shaking.shaking_last_frame Last frame of the particles used by Tracer self-cal and Orientation with particles.
shaking max num points shaking.shaking_max_num_points Tracer self-cal: at most this many reliable particles in the fit (0 = 400).
shaking max num frames shaking.shaking_max_num_frames Tracer self-cal: at most this many frames, spread evenly over the range (20-50 keeps it fast on long recordings).
match tolerance (px) shaking.shaking_tol_px Tracer self-cal: how close [px] a particle's projection must come to a detection to count as seen by that camera.
held camera (0=auto, 1..N=cam) shaking.shaking_hold_cam Tracer self-cal: the camera that stays as it is. 0 = the camera with the fewest ghost points. The other cameras move to agree with it.