From a7f69a37e345146bb5d23dc72053ae94bb1ea241 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 25 Feb 2014 13:41:07 +0400 Subject: [PATCH] stitching: use BORDER_CONSTANT in warp --- modules/stitching/src/stitcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/stitching/src/stitcher.cpp b/modules/stitching/src/stitcher.cpp index 2d12886..db79e0d 100644 --- a/modules/stitching/src/stitcher.cpp +++ b/modules/stitching/src/stitcher.cpp @@ -179,7 +179,7 @@ Stitcher::Status Stitcher::composePanorama(InputArrayOfArrays images, OutputArra K(1,1) *= (float)seam_work_aspect_; K(1,2) *= (float)seam_work_aspect_; - corners[i] = w->warp(seam_est_imgs_[i], K, cameras_[i].R, INTER_LINEAR, BORDER_REFLECT, images_warped[i]); + corners[i] = w->warp(seam_est_imgs_[i], K, cameras_[i].R, INTER_LINEAR, BORDER_CONSTANT, images_warped[i]); sizes[i] = images_warped[i].size(); w->warp(masks[i], K, cameras_[i].R, INTER_NEAREST, BORDER_CONSTANT, masks_warped[i]); @@ -271,7 +271,7 @@ Stitcher::Status Stitcher::composePanorama(InputArrayOfArrays images, OutputArra cameras_[img_idx].K().convertTo(K, CV_32F); // Warp the current image - w->warp(img, K, cameras_[img_idx].R, INTER_LINEAR, BORDER_REFLECT, img_warped); + w->warp(img, K, cameras_[img_idx].R, INTER_LINEAR, BORDER_CONSTANT, img_warped); // Warp the current image mask mask.create(img_size, CV_8U); -- 2.7.4