Mask
Tools > Mask > Settings, and Tools > Mask > Show Mask to see the mask next to the video.

The mask marks the pixels that belong to cells: white for cells, black for everything else.
Show background (Mask Settings) changes only the picture you play: off shows the video minus the background the mask method has learned, plus 127. What matches the background is mid-gray, and cells stand out darker or brighter. A method that keeps no background image shows the video as it is. Tracking, recordings and the method's learning stay as they are, and the Live View still shows the camera's own picture.
Methods
| Method | How it works | Use it for |
|---|---|---|
| MOG2, KNN | Learn the background from the last frames; what moves is a cell. History is the number of frames remembered, Threshold how different a pixel must be | Cells flowing through a still channel (start with MOG2) |
| Neural network (ONNX) | Runs a segmentation model stored as an .onnx file; values above the threshold are cells |
Your own trained model |
| Mask service | Hands every frame to a program of yours on this computer and takes its mask (Your own mask method) | A method that needs libraries TraCell does not have |
A background model needs some frames before the mask is good. It starts again when you change the method or its settings.
Your own method
The folder button next to the Method list loads a mask method from a Python file. The method names its
parameters and their limits, and TraCell builds the form for them. The method, its parameters and the file's
path are saved in the preset. Help > Example Scripts opens a folder with a working example,
mask_script.py, to copy and change.
Such a file can use only the libraries TraCell has. A method that needs others runs in a program of its own, a mask service. Your own mask method shows both ways, step by step.
A preset can run code
A preset that names a mask script or a linking script runs that Python file when it is loaded. Load presets with scripts only from people you trust.