8. Setting Event Metrics¶
Before saving, configure quantitative parameters in the right dock's Event Metrics panel:
- Frames Per Second: Frame capture rate used to convert boundary movement per frame into movement per second.
- Physical Scale: Pixel-to-physical size calibration, stored as pixels per millimeter. Click the ruler icon to draw a two-point line across a known physical distance, or enter pixels/mm manually.
- Region of Interest (ROI): Restrict measurements to one or more closed polygon regions. Multiple regions are combined into one ROI mask.
A scale-bar reference may have different pixel dimensions from the loaded stack, such as an original image containing two slices that were later split into separate stacks. Swell asks for confirmation and measures the scale in the reference image's native pixels. Continue only when the images have the same pixel resolution and were cropped or split without resizing or resampling. ROI reference images must match the stack dimensions because their coordinates map directly onto the stack.
Calibration and ROI Exercise¶
Drag the purple scale-line endpoints across a known distance, then enter that distance in millimeters. Adjust FPS to see that it changes propagation speed but not area. Drag the blue ROI vertices—or redraw the polygon—to see which example mask pixels remain in the measurement.
Preparing the calibration exercise...
Simulated measurement preview — no project data is changed. Swell computes pixels/mm as the drawn line length divided by its known length. At a fixed pixel area, doubling pixels/mm quarters the area in mm²; propagation speed also depends on FPS. This exercise counts the selected mask pixels to show how calibration and ROI selection work. The exported area metrics use contour area and require an ROI.
Choosing Global or Local Settings¶
Use Set Global Scale and Save Global ROI when events share the same acquisition geometry. Use Set Local Scale or Save Local ROI for an event that genuinely needs an override. A local override remains in effect until you choose Use Global Scale or Use Global ROI.
Before exporting physical-unit metrics, confirm that FPS is positive, the scale is expressed in pixels/mm, and the intended ROI is closed. Intensity metrics also require preceding baseline frames; see Exporting Results.