std::vector<int> component() const { return indices_; }
std::vector<detail::CameraParams> cameras() const { return cameras_; }
CV_WRAP double workScale() const { return work_scale_; }
+ UMat resultMask() const { return result_mask_; }
private:
Status matchImages();
std::vector<cv::UMat> seam_est_imgs_;
std::vector<int> indices_;
std::vector<detail::CameraParams> cameras_;
+ UMat result_mask_;
double work_scale_;
double seam_scale_;
double seam_work_aspect_;
#if ENABLE_LOG
int64 blend_t = getTickCount();
#endif
- UMat result, result_mask;
- blender_->blend(result, result_mask);
+ UMat result;
+ blender_->blend(result, result_mask_);
LOGLN("blend time: " << ((getTickCount() - blend_t) / getTickFrequency()) << " sec");
LOGLN("Compositing, time: " << ((getTickCount() - t) / getTickFrequency()) << " sec");