evaluateerror.m

来自「三维重建」· M 代码 · 共 16 行

M
16
字号
function err = evaluateError(ste,X,Y,meth)
%
%   err = EVALUATEERROR(ste,X,Y,meth)
%   
%   Evaluates the root mean squared error for the given data X,Y.
%   If meth = 0 the depth of a coordinate pair is computed by
%   getObjectCoordinates, otherwise by multiplePointReconstruction.
%   

if meth == 0
    [r err errx erry errz] = getObjectCoordinates(ste,X,Y)
else
    [r, Py , V] = multiplePointReconstruction(ste,X,1)
    err = sqrt(mean(sum (r - Y).^2 , 2)));
end
    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?