Skip to content

Downsampling and Conversion to MAT Format

The first step is converting raw videos into the .mat format used by CaliAli, with optional spatial and temporal downsampling.

Run:

CaliAli_options = CaliAli_downsample(CaliAli_options);

For large videos, use batch downsampling:

CaliAli_options = CaliAli_downsample_batch(CaliAli_options);

CaliAli_downsample_batch() creates the same *_ds.mat output format but processes in chunks, which is usually safer for long recordings. See FAQ for when to use each downsampling function.

Output File

This step creates *_ds.mat files. For naming and save-location details, see FAQ output naming.

What if my video sessions are split into multiple video files (common for UCLA recordings)?

Data acquired with the UCLA Miniscope is often divided into multiple .avi videos. Select the entire folder instead of individual files so CaliAli concatenates all segments from the same session into one .mat file. Learn more in Processing Split Data.


After finishing downsampling you can proceed to Motion Correction