在estimateCameraParameters.m的第486行,调用refine函数,如下所示。该函数的源代码在哪里?
我搜索了所有的Matlab脚本,但没有找到它。
也没有关于这个函数的文档。
你知道去哪里找它吗?
refine藏在哪里?
errors = refine(stereoParams, imagePoints1(:, :, pairsUsed), ...
imagePoints2(:, :, pairsUsed), shouldComputeErrors);在第303行,有此函数的简短描述:
% refine the initial estimate and compute distortion coefficients using
% non-linear least squares minimization
errors = refine(cameraParams, imagePoints, shouldComputeErrors);发布于 2015-03-13 17:40:48
找到了:在stereoParameters.m中
我只需要开始使用调试器逐步执行estimateCameraParameters.m。
附加说明:
http://se.mathworks.com/help/matlab/matlab_oop/ordinary-methods.html
以下任一语句都是调用方法的正确语法,其中obj是定义计算方法的类的对象:
obj.compute(inc)
compute(obj,inc)因此()是一个方法,而不是一个独立的函数。
我不知道可以使用method(object)语法调用对象上的方法。这让我感到困惑,我认为refine()是一个独立的方法,而不是定义在类中的。
https://stackoverflow.com/questions/29028379
复制相似问题