mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
switched float with short in blending step (opencv_stitching)
This commit is contained in:
@@ -96,7 +96,7 @@ double estimateFocal(const vector<ImageFeatures> &features, const vector<Matches
|
||||
}
|
||||
}
|
||||
|
||||
if (static_cast<int>(focals.size()) >= 2 * (num_images - 1))
|
||||
if (static_cast<int>(focals.size()) >= num_images * (num_images - 1) / 2)
|
||||
{
|
||||
nth_element(focals.begin(), focals.end(), focals.begin() + focals.size()/2);
|
||||
return focals[focals.size()/2];
|
||||
|
||||
Reference in New Issue
Block a user