get mean distance error of fitting dmean1 = Mean distance for scanned face dmean2 = Mean distance for head points Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [dmean1, dmean2] = vb_get_fit_error(digitizerfile) 0002 % get mean distance error of fitting 0003 % 0004 % dmean1 = Mean distance for scanned face 0005 % dmean2 = Mean distance for head points 0006 % 0007 % Copyright (C) 2011, ATR All Rights Reserved. 0008 % License : New BSD License(see VBMEG_LICENSE.txt) 0009 0010 load(digitizerfile,'fit_data'); 0011 0012 Nscan = size(fit_data.Vscan,1); 0013 Npos = size(fit_data.Vpos,1); 0014 0015 dmean1 = sum(fit_data.dmin(1:Nscan))/Nscan; 0016 dmean2 = sum(fit_data.dmin(Nscan+1:end))/Npos;