0001 function Reg= np_calc_image_prior( inv_model );
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 warning('EIDORS:deprecated','NP_CALC_IMAGE_PRIOR is deprecated as of 07-Jun-2012. Use PRIOR_LAPLACE instead.');
0014
0015 Reg = eidors_obj('get-cache', inv_model, 'np_2003_image_prior');
0016
0017 if ~isempty(Reg)
0018 eidors_msg('np_calc_image_prior: using cached value', 3);
0019 return
0020 end
0021
0022 parameters= inv_model.np_calc_image_prior.parameters;
0023 smooth_deg= parameters(1);
0024 smooth_w = parameters(2);
0025
0026 Reg = iso_f_smooth(inv_model.fwd_model.elems, ...
0027 inv_model.fwd_model.nodes, ...
0028 smooth_deg, smooth_w);
0029
0030 eidors_obj('set-cache', inv_model, 'np_2003_image_prior', Reg);
0031 eidors_msg('np_calc_image_prior: setting cached value', 3);