Bug in CvModelEstimator2::checkSubset (Bug #2470)
Description
In the function CvModelEstimator2::checkSubset, there is this piece of code:
if( checkPartialSubsets )
i0 = i1 = count - 1;
else
i0 = 0, i1 = count - 1;
In this case, when checkPartialSubsets == true, then in the following loop: for( i = i0; i <= i1; i++ )
since i is initialised as i = i0 =i1, then the return value: i >= i1 will always be true. Then this function becomes useless.
History
Updated by Evgeny Talanin over 12 years ago
- Category set to calibration, 3d
Updated by Vadim Pisarevsky about 12 years ago
- Affected version set to 2.4.3
- Target version deleted ()
Updated by Ilya Lysenkov about 12 years ago
- Assignee set to Ilya Lysenkov
Updated by Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4