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: Mesh3DProcess.m
    path of file: ./repos/u-shape3D/software
    
    the code of the file until where you have to start completion: classdef Mesh3DProcess < ImageAnalysisProcess
    
% Mesh3DProcess - 
%
% Copyright (C) 2024, Danuser Lab - UTSouthwestern 
%
% This file is part of Morphology3DPackage.
% 
% Morphology3DPackage is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
% 
% Morphology3DPackage is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
% 
% You should have received a copy of the GNU General Public License
% along with Morphology3DPackage.  If not, see <http://www.gnu.org/licenses/>.
% 
% 
    properties (Constant)
        validMeshModes =         {'otsu', 'otsuMulticell', 'otsuSteerable',...
                                  'stdSteerable', 'twoLevelSurface', 'threeLevelSurface', ...
                                  'threeLevelSurfaceMultiApo', 'readDaeFile', 'loadMask', 'activeContour'};
        validRegistrationModes = {'translation', 'rigid', 'affine'};
        validSmoothMeshModes =   {'curvature', 'none'};
        guiIgnoreParameters = {'daeFilePath', 'maskDir', 'maskName'};
    end
    
    methods (Access = public)
        
        function obj = Mesh3DProcess(owner,varargin)
            if nargin == 0
                super_args = {};
            else
                % Input 
    
function checkParameters(obj, owner, params)
            % check that the parameters inputted are valid
            ip = inputParser;
            ip.KeepUnmatched = true;
            ip.StructExpand = true;
            addParameter(ip,'useUndeconvolved',@(x) (x==0 || x==1));
            addParameter(ip,'meshMode',@ischar);

            addParameter(ip,'registerImages',@(x) (x==0 || x==1));
            addParameter(ip,'registrationMode',@ischar);
            addParameter(ip,'saveRawImages',@(x) (x==0 || x==1));

            addParameter(ip,'scaleOtsu',@(x) (isscaler(x) && x>=0));
            addParameter(ip,'imageGamma',@(x) (isscaler(x) && x>0));
            addParameter(ip,'smoothImageSize',@(x) (isscaler(x) && x>=0));
            addParameter(ip,'smoothMeshMode',@ischar);
            addParameter(ip,'smoothMeshIterations',@(x) (isscaler(x) && x>=0 && mod(x,1)==0));
            addParameter(ip,'curvatureMedianFilterRadius',@(x) (isscaler(x) && x>=0 && isinteger(x)));
            addParameter(ip,'curvatureSmoothOnMeshIterations',@(x) (isscaler(x) && x>=0 && isinteger(x)));
            addParameter(ip,'channels',@(x) ~isempty(x));

            addParameter(ip,'saveCurvatureImage',@(x) (x==0 || x==1));
            addParameter(ip,'saveEdgeImage',@(x) (x==0 || x==1));
            addParameter(ip,'saveRawSubtractedImages',@(x) (x==0 || x==1));

            addParameter(ip,'multicellGaussSizePreThresh',@(x) (isscaler(x) && x>=0 && isinteger(x)));
            addParameter(ip,'multicellMinVolume',@(x) (isscaler(x) && x>=0));
            addParameter(ip,'multicellDilateRadius',@(x) (isscaler(x) && x>=0 && isinteger(x)));
            addParameter(ip,'multicellCellIndex',@(x) (isscaler(x) && x>=0 && isinteger(x)));
            addParameter(ip,'filterScales', @(x) (isvector(x) && sum(mod(x,1))==0 && sum(x<0)==0));
            addParameter(ip,'steerableType',@(x) (x==1 | x==2));
            addParameter(ip,'filterNumStdSurface',@(x) (isscaler(x) && x>0));
            addParameter(ip,'insideGamma',@(x) (isscaler(x) && x>0));
            addParameter(ip,'insideBlur',@(x) (isscaler(x) && x>0));
            addParameter(ip,'insideDilateRadius',@(x) (isscaler(x) && x>=0 && isinteger(x)));
            addParameter(ip,'insideErodeRadius',@(x) (isscaler(x) && x>=0 && isinteger(x)));

            addParameter(ip,'daeFilePath',@(x) (isempty(x) || ischar(x)));
            addParameter(ip,'maskDir',@(x) (isempty(x) || ischar(x)));
            addParameter(ip,'maskName',@(x) (isempty(x) || ischar(x)));

            addParameter(ip,'OutputDirectory',@ischar);
            addParameter(ip,'ChannelIndex',@isnumeric);
            addParameter(ip,'PerChannelParams',@iscell);
            addParameter(ip,'InputImageProcessIndex',@(x) isempty(x) || isnumeric(x));            
            ip.parse(params);
            paramsMatched = ip.Results;
            paramsUnmatched = ip.Unmatched;
            
            % check the channels parameter
            channelAll = ischar(paramsMatched.channels) && strcmp(paramsMatched.channels, 'all');
            channelNumeric = isnumeric(paramsMatched.channels) && min(ismember(paramsMatched.channels, 1:length(owner.channels_)));
            assert(channelAll | channelNumeric, 'The channels parameter is invalid.')
            
            % check the meshMode parameter
            % meshModes = {'otsu', 'otsuMulticell', 'otsuSteerable', 'stdSteerable', 'twoLevelSurface', 'threeLevelSurface', 'threeLevelSurfaceMultiApo', 'readDaeFile', 'loadMask', 'activeContour'};
            assert(max(cellfun(@(x) strcmp(x,paramsMatched.meshMode), Mesh3DProcess.validMeshModes)), '%s is an invalid meshMode parameter', paramsMatched.meshMode);

            % check the registrationMode parameter
            % registrationModes = {'translation', 'rigid', 'affine'};
            assert(max(cellfun(@(x) strcmp(x,paramsMatched.registrationMode), Mesh3DProcess.validRegistrationModes)), '%s is an invalid registrationMode parameter', paramsMatched.registrationMode);
            
            % check the smoothMeshMode parameter
            % smoothMeshModes = {'curvature', 'none'};
            assert(max(cellfun(@(x) strcmp(x,paramsMatched.smoothMeshMode), Mesh3DProcess.validSmoothMeshModes)), '%s is an invalid smoothMeshMode parameter', paramsMatched.smoothMeshMode);
            
            % warn the user about unidentified parameters
            if ~isempty(paramsUnmatched)
                names = fieldnames(paramsUnmatched);
                for s = 1:length(names)
                    warning('MATLAB:unusedParam', ['Invalid mesh parameter: ' names{s}]);
                end