43 #ifndef __OPENCV_STITCHING_BLENDERS_HPP__
44 #define __OPENCV_STITCHING_BLENDERS_HPP__
58 enum {
NO, FEATHER, MULTI_BAND };
61 void prepare(
const std::vector<Point> &
corners,
const std::vector<Size> &
sizes);
62 virtual void prepare(
Rect dst_roi);
80 void prepare(
Rect dst_roi);
86 Rect createWeightMaps(
const std::vector<Mat> &masks,
const std::vector<Point> &
corners,
87 std::vector<Mat> &weight_maps);
101 MultiBandBlender(
int try_gpu =
false,
int num_bands = 5,
int weight_type = CV_32F);
106 void prepare(
Rect dst_roi);
111 int actual_num_bands_, num_bands_;
112 std::vector<Mat> dst_pyr_laplace_;
113 std::vector<Mat> dst_band_weights_;
137 #endif // __OPENCV_STITCHING_BLENDERS_HPP__
int numBands() const
Definition: blenders.hpp:103
Definition: blenders.hpp:72
const int * sizes
Definition: core_c.h:212
virtual ~Blender()
Definition: blenders.hpp:56
Definition: blenders.hpp:58
void CV_EXPORTS createLaplacePyrGpu(const Mat &img, int num_levels, std::vector< Mat > &pyr)
GLuint src
Definition: core_c.h:1650
void CV_EXPORTS createLaplacePyr(const Mat &img, int num_levels, std::vector< Mat > &pyr)
void setSharpness(float val)
Definition: blenders.hpp:78
void blend(Surface *background, const Surface &foreground, const Area &srcArea, const Vec2i &dstRelativeOffset=Vec2i::zero())
GLint GLvoid * img
Definition: legacy.hpp:1150
Rect dst_roi_
Definition: blenders.hpp:68
float sharpness() const
Definition: blenders.hpp:77
void CV_EXPORTS restoreImageFromLaplacePyr(std::vector< Mat > &pyr)
void CV_EXPORTS restoreImageFromLaplacePyrGpu(std::vector< Mat > &pyr)
Definition: blenders.hpp:53
Definition: blenders.hpp:98
void CV_EXPORTS normalizeUsingWeightMap(const Mat &weight, Mat &src)
FeatherBlender(float sharpness=0.02f)
Definition: blenders.hpp:95
void setNumBands(int val)
Definition: blenders.hpp:104
The n-dimensional matrix class.
Definition: core.hpp:1688
CvSize CvPoint2D32f * corners
Definition: calib3d.hpp:215
GLuint GLuint GLsizei GLenum type
Definition: core_c.h:114
template 2D point class.
Definition: core.hpp:82
void CV_EXPORTS createWeightMap(const Mat &mask, float sharpness, Mat &weight)
GLuint dst
Definition: calib3d.hpp:134
Smart pointer to dynamically allocated objects.
Definition: core.hpp:1268
Mat dst_mask_
Definition: blenders.hpp:67
GLenum GLint GLuint mask
Definition: tracking.hpp:132