diff --git a/modules/stitching/src/blenders.cpp b/modules/stitching/src/blenders.cpp index 33a86ee360..534489de76 100644 --- a/modules/stitching/src/blenders.cpp +++ b/modules/stitching/src/blenders.cpp @@ -277,6 +277,9 @@ void MultiBandBlender::prepare(Rect dst_roi) else #endif { + dst_pyr_laplace_.clear(); + dst_band_weights_.clear(); + dst_pyr_laplace_.resize(num_bands_ + 1); dst_pyr_laplace_[0] = dst_;