mirror of
https://github.com/opencv/opencv.git
synced 2025-07-25 22:57:53 +08:00
calib3d: fix uninitialized fields in ctors
This commit is contained in:
parent
9fabc3406f
commit
68012bfbf9
@ -80,11 +80,8 @@ namespace cv
|
|||||||
class LMSolverImpl CV_FINAL : public LMSolver
|
class LMSolverImpl CV_FINAL : public LMSolver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LMSolverImpl() : maxIters(100) { init(); }
|
LMSolverImpl(const Ptr<LMSolver::Callback>& _cb, int _maxIters, double _eps = FLT_EPSILON)
|
||||||
LMSolverImpl(const Ptr<LMSolver::Callback>& _cb, int _maxIters) : cb(_cb), epsx(FLT_EPSILON), epsf(FLT_EPSILON), maxIters(_maxIters) { init(); }
|
: cb(_cb), epsx(_eps), epsf(_eps), maxIters(_maxIters)
|
||||||
LMSolverImpl(const Ptr<LMSolver::Callback>& _cb, int _maxIters, double _eps) : cb(_cb), epsx(_eps), epsf(_eps), maxIters(_maxIters) { init(); }
|
|
||||||
|
|
||||||
void init()
|
|
||||||
{
|
{
|
||||||
printInterval = 0;
|
printInterval = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user