We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7580590 commit e4ff619Copy full SHA for e4ff619
xpano/algorithm/stitcher.cc
@@ -325,6 +325,12 @@ Status Stitcher::ComposePanorama(cv::OutputArray pano) {
325
326
for (size_t img_idx = 0; img_idx < imgs_.size(); ++img_idx) {
327
NextTask(ProgressType::kStitchCompose);
328
+ if (auto non_zero = cv::countNonZero(masks_warped[img_idx]);
329
+ non_zero == 0) {
330
+ spdlog::warn("Skipping fully obscured image");
331
+ continue;
332
+ }
333
+
334
spdlog::trace("Compositing image #{}", indices_[img_idx] + 1);
335
auto compositing_timer = Timer();
336
0 commit comments