Downhill Simplex Method (Bug #3703)


Added by Saree Alnaghy almost 11 years ago. Updated over 10 years ago.


Status:Done Start date:2014-05-21
Priority:Normal Due date:
Assignee:Saree Alnaghy % Done:

0%

Category:-
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty:Easy HW Platform:Any
Pull request:https://github.com/Itseez/opencv/pull/2784

Description

DownhillSolverImpl::innerDownhillSimplex something looks broken here:
Mat_<double> coord_sum(1,ndim,0.0),buf(1,ndim,0.0),y(1,ndim,0.0);
nfunk = 0;
for(i=0;i<ndim+1;++i) {
y(i) = f->calc(p[i]);
}
y has only ndim elements, while the loop goes over ndim+1.

Resulting in unknown exception.


Associated revisions

Revision b64e106b
Added by Vadim Pisarevsky about 10 years ago

Merge pull request #3703 from BKNio:fixing_bad_alloc

History

Updated by Dmitry Retinskiy almost 11 years ago

  • Pull request set to https://github.com/Itseez/opencv/pull/2784
  • Assignee set to Saree Alnaghy
  • Status changed from New to Open

Updated by Yash Vadalia almost 11 years ago

I removed my PR.

Updated by Andrew Senin over 10 years ago

Merged

  • Status changed from Open to Done

Also available in: Atom PDF