mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Bugfix in n* optimization.
Similar to the problem in LevMarq, arg.inl was being used instead of best.inl. This opened us up to a potential segfault.
This commit is contained in:
parent
ac1099deb8
commit
6d27d488bf
@ -1664,7 +1664,7 @@ inline void RHO_HEST_REFC::nStarOptimize(void){
|
||||
best_n = test_n;
|
||||
bestNumInl = testNumInl;
|
||||
}
|
||||
testNumInl -= !!arg.inl[test_n-1];/* FIXME: Probable bug! */
|
||||
testNumInl -= !!best.inl[test_n-1];
|
||||
}
|
||||
|
||||
if(bestNumInl*ctrl.phMax > ctrl.phNumInl*best_n){
|
||||
|
Loading…
Reference in New Issue
Block a user