You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: SyntheticSequenceGenerator.m
    path of file: ./repos/mexopencv/opencv_contrib/+cv
    
    the code of the file until where you have to start completion: classdef SyntheticSequenceGenerator < handle
    %SYNTHETICSEQUENCEGENERATOR  Synthetic frame sequence generator for testing background subtraction algorithms
    %
    % It will ge
    
function delete(this)
            %DELETE  Destructor
            %
            %     obj.delete()
            %
            % See also: cv.SyntheticSequenceGenerator
            %
            if isempty(this.id), return; end
            SyntheticSequenceGenerator_(this.id, 'delete');
        end

        function [frame, gtMask] = getNextFrame(this)
            %GETNEXTFRAME  Obtain the next frame in the sequence
            %
            %     [frame, gtMask] = obj.getNextFrame()
            %
            % ## Output
            % * __frame__ Output frame.
            % * __gtMask__ Output ground-truth (reference) segmentation mask
            %   object/background.
            %
            [frame, gtMask] = SyntheticSequenceGenerator_(this.id, 'getNextFrame');
        end