refactored opencv_stitching, added possibility to turn off BA

This commit is contained in:
Alexey Spizhevoy
2011-08-15 12:20:27 +00:00
parent 6e3a1f7b49
commit b97ecdff0d
6 changed files with 44 additions and 29 deletions

View File

@@ -64,6 +64,9 @@ Ptr<SeamFinder> SeamFinder::createDefault(int type)
void PairwiseSeamFinder::find(const vector<Mat> &src, const vector<Point> &corners,
vector<Mat> &masks)
{
LOGLN("Finding seams...");
int64 t = getTickCount();
if (src.size() == 0)
return;
@@ -80,6 +83,8 @@ void PairwiseSeamFinder::find(const vector<Mat> &src, const vector<Point> &corne
findInPair(i, j, roi);
}
}
LOGLN("Finding seams, time: " << ((getTickCount() - t) / getTickFrequency()) << " sec");
}