OpenCV453
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
cv::LMSolver クラスabstract

#include <calib3d.hpp>

cv::Algorithmを継承しています。

クラス

class  Callback
 

公開メンバ関数

virtual int run (InputOutputArray param) const =0
 
virtual void setMaxIters (int maxIters)=0
 
virtual int getMaxIters () const =0
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual CV_WRAP void clear ()
 Clears the algorithm state [詳解]
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
virtual CV_WRAP void read (const FileNode &fn)
 Reads algorithm parameters from a file storage [詳解]
 
virtual CV_WRAP bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read [詳解]
 
virtual CV_WRAP void save (const String &filename) const
 
virtual CV_WRAP String getDefaultName () const
 

静的公開メンバ関数

static Ptr< LMSolvercreate (const Ptr< LMSolver::Callback > &cb, int maxIters)
 
static Ptr< LMSolvercreate (const Ptr< LMSolver::Callback > &cb, int maxIters, double eps)
 
- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node [詳解]
 
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file [詳解]
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String [詳解]
 

その他の継承メンバ

- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

詳解

Levenberg-Marquardt solver. Starting with the specified vector of parameters it optimizes the target vector criteria "err" (finds local minima of each target vector component absolute value).

When needed, it calls user-provided callback.

関数詳解

◆ create()

static Ptr< LMSolver > cv::LMSolver::create ( const Ptr< LMSolver::Callback > &  cb,
int  maxIters 
)
static

Creates Levenberg-Marquard solver

引数
cbcallback
maxItersmaximum number of iterations that can be further modified using setMaxIters() method.

◆ getMaxIters()

virtual int cv::LMSolver::getMaxIters ( ) const
pure virtual

Retrieves the current maximum number of iterations

◆ run()

virtual int cv::LMSolver::run ( InputOutputArray  param) const
pure virtual

Runs Levenberg-Marquardt algorithm using the passed vector of parameters as the start point. The final vector of parameters (whether the algorithm converged or not) is stored at the same vector. The method returns the number of iterations used. If it's equal to the previously specified maxIters, there is a big chance the algorithm did not converge.

引数
paraminitial/final vector of parameters.

Note that the dimensionality of parameter space is defined by the size of param vector, and the dimensionality of optimized criteria is defined by the size of err vector computed by the callback.

◆ setMaxIters()

virtual void cv::LMSolver::setMaxIters ( int  maxIters)
pure virtual

Sets the maximum number of iterations

引数
maxItersthe number of iterations

このクラス詳解は次のファイルから抽出されました: