From f814218640d471bea5fe2fd2d4b3424710e66e75 Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Tue, 8 Dec 2015 15:36:00 +0300 Subject: [PATCH] Coverity: uninitialized fields in Stitcher --- modules/stitching/src/stitcher.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/stitching/src/stitcher.cpp b/modules/stitching/src/stitcher.cpp index c515c192fb..41fe81f5fc 100644 --- a/modules/stitching/src/stitcher.cpp +++ b/modules/stitching/src/stitcher.cpp @@ -82,6 +82,11 @@ Stitcher Stitcher::createDefault(bool try_use_gpu) stitcher.setExposureCompensator(makePtr()); stitcher.setBlender(makePtr(try_use_gpu)); + stitcher.work_scale_ = 1; + stitcher.seam_scale_ = 1; + stitcher.seam_work_aspect_ = 1; + stitcher.warped_image_scale_ = 1; + return stitcher; }