OpenCV 4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::detail::Blender Class Reference

Base class for all blenders. More...

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

Collaboration diagram for cv::detail::Blender:

Public Types

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< BlendercreateDefault (int type, bool try_gpu=false)
 

Protected Attributes

UMat dst_
 
UMat dst_mask_
 
Rect dst_roi_
 

Detailed Description

Base class for all blenders.

Simple blender which puts one image over another

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NO 
FEATHER 
MULTI_BAND 

Constructor & Destructor Documentation

◆ ~Blender()

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

Member Function Documentation

◆ blend()

virtual void cv::detail::Blender::blend ( InputOutputArray dst,
InputOutputArray dst_mask )
virtual
Python:
cv.detail.Blender.blend(dst, dst_mask) -> dst, dst_mask

Blends and returns the final pano.

Parameters
dstFinal pano
dst_maskFinal pano mask

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

◆ createDefault()

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

◆ feed()

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

Processes the image.

Parameters
imgSource image
maskSource image mask
tlSource image top-left corners

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

◆ prepare() [1/2]

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

Prepares the blender for blending.

Parameters
cornersSource images top-left corners
sizesSource image sizes

◆ prepare() [2/2]

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

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::FeatherBlender, and cv::detail::MultiBandBlender.

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: