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: MotifDetection3DProcess.m
    path of file: ./repos/u-shape3D/software
    
    the code of the file until where you have to start completion: classdef MotifDetection3DProcess < MeshProcessingProcess


    
function defaultParams = getDefaultParams(owner, varagin)
            
            % check inputs
            ip = inputParser;
            ip.addRequired('owner', @(x) isa(x, 'MovieObject'));
            ip.addOptional('outputDir', owner.outputDirectory_, @ischar);
            ip.parse(owner)
               
            nChan = numel(owner.channels_);
            defaultParams = struct();   
                      
            % find default parameters
            
            defaultParams.calculateShrunk = 0; % shrink the blebs and calculate statistics for the shrunk blebs
            defaultParams.minMotifSize = 1; % the minimum allowed bleb size
            defaultParams.useClicks = 0; % use click data rather than an SVM model to determine patch class
            defaultParams.usePatchMerge = 0; % set to 1 to use the output of patchMerge rather than the output of surfaceSegment

            defaultParams.PerChannelParams = fieldnames(defaultParams);

            defaultParams.svmPath = []; % the location of the saved SVM model
            defaultParams.userClicksName = []; % the name of the saved user click information
            defaultParams.removePatchesSVMpath = []; % the path to an SVM model used to remove patches that would otherwise be classified as protrusions, set to [] to not remove any patches
                
            defaultParams.ChannelIndex = 1:numel(owner.channels_); % see class method setPara above
            defaultParams.channels = ''; % the channels to mesh, set to 'all' for all the channels or give an array of channel numbers
            defaultParams.InputImageProcessIndex = []; % TODO -- Process Output to use as input to the deconvolution, empty implies raw images
            % set more default parameters
            defaultParams.OutputDirectory = fullfile(ip.Results.outputDir,'Morphology', 'Analysis','MotifSegment');        
            defaultParams = prepPerChannelParams(defaultParams, nChan);                    
        end