0001 function Reg= ab_calc_tv_prior( inv_model );
0002
0003
0004
0005
0006
0007
0008
0009 warning('EIDORS:deprecated','AB_CALC_TV_PRIOR is deprecated as of 06-Jun-2012. Use PRIOR_TV instead.');
0010
0011 elem = inv_model.fwd_model.elems;
0012 node = inv_model.fwd_model.nodes;
0013
0014 dims= size(node,2);
0015
0016 if dims==2
0017 msh.TC = elem';
0018 msh.PC = node';
0019 Reg= TV_operator_2D( msh );
0020 elseif dims==3
0021 msh.elem_c = elem;
0022 msh.vtx_c = node;
0023 Reg= TV_operator_3D( msh );
0024 else
0025 error('problem dimension must be 2 or 3');
0026 end