Sessions: images, settings and saved work

Before anything else in PIVlab, you need images loaded. This page covers importing an image sequence, and the difference between a session (everything: images, masks, results) and settings (just your configuration, reusable on a different dataset).

Starting a new session

Choose File → New session (Ctrl+Shift+N), or click the first icon in Main tasks quick access. This opens the Input data panel shown here, with these ways to get images in: Import images (from disk), Import images of two cameras (two cameras, see Stereo-PIV), Convert + import video, Load session (resume earlier work — see below), and Acquire images (capture directly from a connected camera).

Reset PIVlab GUI removes all images, results, masks and calibrations and sets all settings to their defaults, also those of the image acquisition panel. Your preferences (folders, theme, panel width, Basic/Advanced mode) are kept. PIVlab asks before it resets; unsaved work is lost.

PIVlab Input data panel with a loaded image list
The Input data panel, with four Kármán-vortex images loaded (time resolved).

Importing images

Click Import images to open the image-import dialog shown below. Browse to your folder, add the files you want to the list on the right, and choose an image sequencing style — this tells PIVlab how to pair up your files into frames:

PIVlab image import dialog: sequencing style, folder browser, and the list of images selected for import
The image import dialog: the images of the folder (left, with a preview of the clicked image), the selected images (right), the sequencing style and Import.
PIVlab 3.14 The images are selected in a different file-selection window; the sequencing style is chosen in the same way.
StylePairingUse it for
Time resolved [A+B], [B+C], [C+D], … A continuous recording where every image is reused as both the second half of one pair and the first half of the next — gives one vector field per consecutive frame step.
Pairwise [A+B], [C+D], [E+F], … Discrete double-frame/double-exposure pairs, each captured with its own short time separation, with no overlap between pairs.
Reference [A+B], [A+C], [A+D], … Comparing every image against one fixed reference frame — e.g. measuring growing displacement relative to a baseline.
  1. Go to your folder: type it, use Up / Browse..., pick one of the Recent folders, or double-click a sub-folder. The Filter shows only names that contain a text (e.g. _A); with * (any characters) and ? (one character) the whole name must match, e.g. cam1*_A.
  2. Select files (click and drag, Shift or Ctrl, Ctrl+A for all) and click Add, or Add all. The files are imported in the order in which you add them; the same files may be added more than once. Remove and Clear edit the list.
  3. Check the Sequencing style; the line below it shows how many image pairs you get.
  4. Click Import to load them (or Cancel to back out). At least two images — one pair — are required.
PIVlab will double-check your naming If your filenames end in “A” and “B”, the dialog selects Pairwise for you. If you switch back to Time resolved, PIVlab asks again after the import — a common mix-up worth knowing about rather than dismissing without reading.
Odd number of images If your selection results in an odd number of images, the last one is silently dropped so every image can form a complete pair. If that's unexpected, double-check your file selection.

The image list and moving between frames

Loaded frames appear in the Image list, each entry prefixed A: or B: for the first/second image of the pair. Move through the frames with the slider in the Tools panel.

Select one or more entries in the image list and click Remove images to drop them again. At least one pair must remain.

Removing images clears your results For the whole session, not just the removed frames (what else clears results). Do this before analysing, or be ready to re-run ANALYZE! afterwards. If removing leaves an odd number of images, PIVlab highlights the list red and asks you to remove one more.

Sessions vs. settings — what's the difference?

PIVlab has two, easily confused, kinds of saved file. Knowing which one you want avoids a lot of head-scratching:

SessionSettings
Menu path File → Load/Save → …PIVlab session File → Load/Save → …PIVlab settings
Contains Everything: image references, masks, ROI, calibration, analysis results, and all settings. Only the configuration — all settings of all panels and the calibration (reference distance, time step, axis directions). No images and no results.
Use it to Pause and resume the exact same project, or hand off a finished analysis to someone else. Reuse a processing pipeline you've tuned on a different dataset, or share a configuration without sending any data.
Default file name PIVlab_session.mat PIVlab_set_<username>.mat

Saving and loading a session

  1. Save: File → Save → Save PIVlab session (or the Load session button's counterpart in the menu). Choose a location; the default name is PIVlab_session.mat.
  2. Load: click Load session in the Input data panel, or File → Load → Load PIVlab session. This restores images, masks, results and settings exactly as they were.

A session brings PIVlab back to where you saved it: the same images, results, masks, calibration and settings, and the same view (open panel, displayed frame, zoom). Camera connections are not restored.

PIVlab 3.14 Session and settings files saved with PIVlab 3.14 or older cannot be opened in this version. PIVlab tells you so when you try. Open them in the old version and note the settings, or redo the analysis.

Saving and loading settings only

  1. Save: File → Save → Save current PIVlab settings. Choose a location; the default name includes your username, e.g. PIVlab_set_yourname.mat.
  2. Load: File → Load → Import PIVlab settings. This applies the pre-processing, PIV, data smoothing and vector validation settings, the calibration and the mask generator settings. Display, export and image acquisition settings stay as they are, and so do camera calibration, image rectification and Stereo-PIV mode (they belong to the data of a session). Your loaded images and results are not touched.
  3. A settings file can also be a session: Import PIVlab settings takes the settings out of a session file without loading its images or results.
Related, but covered elsewhere Acquire images (live camera capture) and Stereo-PIV (Import images of two cameras, two cameras in one session) are more specialized topics with their own pages.