minor changes in opencv_stitching

This commit is contained in:
Alexey Spizhevoy 2011-05-17 13:48:27 +00:00
parent 3d154c9dde
commit 013b7fdc91

View File

@ -102,7 +102,7 @@ void HomographyBasedEstimator::estimate(const vector<Mat> &images, const vector<
for (int i = 0; i < num_images; ++i)
is_focals_estimated_ = is_focals_estimated_ && is_focal_estimated[i];
// Find focal medians and use them as true focal length
// Find focal median and use it as true focal length
nth_element(focals.begin(), focals.end(), focals.begin() + focals.size() / 2);
cameras.resize(num_images);
for (int i = 0; i < num_images; ++i)