Home > vbmeg > functions > device > vivid > vb_get_fit_error.m

vb_get_fit_error

PURPOSE ^

get mean distance error of fitting

SYNOPSIS ^

function [dmean1, dmean2] = vb_get_fit_error(digitizerfile)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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;

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005