Merge pull request #8470 from superbort:stitching-estimators

This commit is contained in:
Alexander Alekhin 2017-03-28 13:08:24 +00:00
commit f34b2f7b8d

View File

@ -199,7 +199,7 @@ bool AffineBasedEstimator::estimate(const std::vector<ImageFeatures> &features,
const std::vector<MatchesInfo> &pairwise_matches,
std::vector<CameraParams> &cameras)
{
cameras.resize(features.size());
cameras.assign(features.size(), CameraParams());
const int num_images = static_cast<int>(features.size());
// find maximum spaning tree on pairwise matches