setRecon

Sets required fields in structure array seti for reconstruction process in recon.html.

Contents

Syntax

seti = setRecon(seti)
seti = setRecon(seti,dispDepth)

Input Arguments

Optional Input Argument

Output Arguments

The added fields in seti can be found in the called functions

More About

Notation in reconstruction process

See Also

function seti = setRecon(seti,varargin)
if nargin == 2
    dispDepth = varargin{1};
else
    dispDepth = 0;
end

sets for reconstruction process

if dispDepth >= 1
    disp('-- setInvType --')
end
    seti = setInvType(seti,dispDepth);

if dispDepth >= 1
    disp('-- check consistency of parameters used in inversion process --')
end
seti = checkConsisRec(seti,dispDepth);

seti = checkfield(seti,'closed',0); % is seti.closed was not set in setInput set it to 0.
if seti.closed == 1
    if dispDepth >= 1
        disp('-- setWavelet --')
    end
    seti = setWavelet(seti);
end

Definition of functions

if dispDepth >= 1
    disp('-- set shrinkage functions --')
end
seti = shrinkFuncs(seti); % defines seti.shrkRe and seti.shrkIm that are also needed in pda

if strcmp(seti.inv,'shrinkage')
    if dispDepth >= 1
        disp('-- setFuncsShrink --')
    end
    seti = setFuncsShrink(seti); % not available in public version
elseif strcmp(seti.inv,'pda')
    if dispDepth >= 1
        disp('-- setFuncsPda --')
    end
    seti = setFuncsPda(seti);
end
if isfield(seti,'qCDexact')
    seti = rmfield(seti,'qCDexact');
end
end