FILTER_JACOBIAN: J= filter_jacobian( fwd_model, img) Filter a jacobian matrix by a specified filter function INPUT: fwd_model = forward model fwd_model.filter_jacobian.jacobian = actual jacobian function (J0) fwd_model.filter_jacobian.filter = Filter Matrix (F) img = image background for jacobian calc OUTPUT: J = Jacobian matrix = F*J0
0001 function J= filter_jacobian( varargin) 0002 % FILTER_JACOBIAN: J= filter_jacobian( fwd_model, img) 0003 % 0004 % Filter a jacobian matrix by a specified filter function 0005 % INPUT: 0006 % fwd_model = forward model 0007 % fwd_model.filter_jacobian.jacobian = actual jacobian function (J0) 0008 % fwd_model.filter_jacobian.filter = Filter Matrix (F) 0009 % img = image background for jacobian calc 0010 % OUTPUT: 0011 % J = Jacobian matrix = F*J0 0012 0013 % (C) 2009 Andy Adler. License: GPL version 2 or version 3 0014 % $Id: filter_jacobian.m 3289 2012-07-01 10:40:31Z aadler $ 0015 0016 warning('EIDORS:deprecated','FILTER_JACOBIAN is deprecated as of 08-Jun-2012. Use JACOBIAN_FILTERED instead.'); 0017 0018 if isfield(inv_model,'filter_jacobian'); 0019 inv_model.jacobian_filtered = inv_model.filter_jacobian; 0020 end 0021 0022 J = jacobian_filtered(varargin{:}); 0023