Generates a preview animation for the sequence as an animated GIF.
Input:
sequence (structure): A valid sequence structure.
trajectories (cell): An array of additional trajectories to draw.
file (string): Path to the destination file.
varargin[Samples] (integer): Number of preview images.
varargin[Scale] (double): Scaling factor.
varargin[Width] (double): Reference width.
varargin[Height] (double): Reference height.
varargin[GroundtruthColor] (vector): Color for groundtruth region.
varargin[TrajectoryColor] (cell): Color for groundtruth region.
varargin[Palette] (matrix): A color palette matrix for GIF images.
varargin[Delay] (integer): Delay between frames for GIF animation.
varargin[Loops] (integer): Number of loops in case for GIF animation.
varargin[Static] (integer): Also export a static version of the first frame.
Output: