fixed bug in opencv_stitching (added handling of homography evaluation failure)

This commit is contained in:
Alexey Spizhevoy
2011-08-16 09:51:54 +00:00
parent c66ed3e02f
commit b6e9ed4ec5
2 changed files with 3 additions and 0 deletions

View File

@@ -549,6 +549,7 @@ int main(int argc, char* argv[])
sz.width = cvRound(full_img_sizes[i].width * compose_scale);
sz.height = cvRound(full_img_sizes[i].height * compose_scale);
}
Rect roi = warper->warpRoi(sz, static_cast<float>(cameras[i].focal), cameras[i].R);
corners[i] = roi.tl();
sizes[i] = roi.size();