cv::detail::Blender Class Reference
图像拼接 » 图像融合器

Base class for all blenders. 更多...

#include <opencv2/stitching/detail/blenders.hpp>

Inheritance diagram for cv::detail::Blender:
cv::detail::FeatherBlender cv::detail::MultiBandBlender

公共类型

enum {
NO ,
FEATHER ,
MULTI_BAND
}

Public Member Functions

virtual ~Blender ()
virtual void blend ( InputOutputArray dst, InputOutputArray dst_mask)
Blends and returns the final pano. 更多...
virtual void feed ( InputArray img, InputArray mask, Point tl)
Processes the image. 更多...
virtual void prepare (const std::vector< Point > &corners, const std::vector< Size > &sizes)
Prepares the blender for blending. 更多...
virtual void prepare ( Rect dst_roi)

Static Public Member Functions

static Ptr < Blender > createDefault (int type, bool try_gpu=false)

Protected Attributes

UMat dst_
UMat dst_mask_
Rect dst_roi_

详细描述

Base class for all blenders.

Simple blender which puts one image over another

Member Enumeration Documentation

anonymous enum

anonymous enum
枚举器
NO
FEATHER
MULTI_BAND

Constructor & Destructor Documentation

~Blender()

virtual cv::detail::Blender::~Blender ( )
inline virtual

成员函数文档编制

blend()

virtual void cv::detail::Blender::blend ( InputOutputArray dst ,
InputOutputArray dst_mask
)
virtual
Python:
dst, dst_mask = cv.detail_Blender.blend( dst, dst_mask )

Blends and returns the final pano.

参数
dst Final pano
dst_mask Final pano mask

Reimplemented in cv::detail::MultiBandBlender ,和 cv::detail::FeatherBlender .

createDefault()

static Ptr < Blender > cv::detail::Blender::createDefault ( int type ,
bool try_gpu = false
)
static
Python:
retval = cv.detail.Blender_createDefault( type[, try_gpu] )

feed()

virtual void cv::detail::Blender::feed ( InputArray img ,
InputArray mask ,
Point tl
)
virtual
Python:
None = cv.detail_Blender.feed( img, mask, tl )

Processes the image.

参数
img Source image
mask Source image mask
tl Source image top-left corners

Reimplemented in cv::detail::MultiBandBlender ,和 cv::detail::FeatherBlender .

prepare() [1/2]

virtual void cv::detail::Blender::prepare ( const std::vector< Point > & corners ,
const std::vector< Size > & sizes
)
virtual
Python:
None = cv.detail_Blender.prepare( corners, sizes )
None = cv.detail_Blender.prepare( dst_roi )

Prepares the blender for blending.

参数
corners Source images top-left corners
sizes Source image sizes

prepare() [2/2]

virtual void cv::detail::Blender::prepare ( Rect dst_roi )
virtual
Python:
None = cv.detail_Blender.prepare( corners, sizes )
None = cv.detail_Blender.prepare( dst_roi )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Reimplemented in cv::detail::MultiBandBlender ,和 cv::detail::FeatherBlender .

Member Data Documentation

dst_

UMat cv::detail::Blender::dst_
protected

dst_mask_

UMat cv::detail::Blender::dst_mask_
protected

dst_roi_

Rect cv::detail::Blender::dst_roi_
protected

The documentation for this class was generated from the following file: