OpenCV  3.2.0-dev
Open Source Computer Vision
cv::detail::MultiBandBlender Class Reference

Blender which uses multi-band blending algorithm (see [13]). More...

#include "blenders.hpp"

Inheritance diagram for cv::detail::MultiBandBlender:
Collaboration diagram for cv::detail::MultiBandBlender:

Public Types

enum  {
  NO,
  FEATHER,
  MULTI_BAND
}
 

Public Member Functions

 MultiBandBlender (int try_gpu=false, int num_bands=5, int weight_type=CV_32F)
 
void blend (InputOutputArray dst, InputOutputArray dst_mask)
 Blends and returns the final pano. More...
 
void feed (InputArray img, InputArray mask, Point tl)
 Processes the image. More...
 
int numBands () const
 
void prepare (const std::vector< Point > &corners, const std::vector< Size > &sizes)
 Prepares the blender for blending. More...
 
void prepare (Rect dst_roi)
 
void setNumBands (int val)
 

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

Blender which uses multi-band blending algorithm (see [13]).

Member Enumeration Documentation

anonymous enum
inherited
Enumerator
NO 
FEATHER 
MULTI_BAND 

Constructor & Destructor Documentation

cv::detail::MultiBandBlender::MultiBandBlender ( int  try_gpu = false,
int  num_bands = 5,
int  weight_type = CV_32F 
)

Member Function Documentation

void cv::detail::MultiBandBlender::blend ( InputOutputArray  dst,
InputOutputArray  dst_mask 
)
virtual

Blends and returns the final pano.

Parameters
dstFinal pano
dst_maskFinal pano mask

Reimplemented from cv::detail::Blender.

static Ptr<Blender> cv::detail::Blender::createDefault ( int  type,
bool  try_gpu = false 
)
staticinherited
void cv::detail::MultiBandBlender::feed ( InputArray  img,
InputArray  mask,
Point  tl 
)
virtual

Processes the image.

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

Reimplemented from cv::detail::Blender.

int cv::detail::MultiBandBlender::numBands ( ) const
inline
void cv::detail::Blender::prepare ( const std::vector< Point > &  corners,
const std::vector< Size > &  sizes 
)
inherited

Prepares the blender for blending.

Parameters
cornersSource images top-left corners
sizesSource image sizes
void cv::detail::MultiBandBlender::prepare ( Rect  dst_roi)
virtual

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

Reimplemented from cv::detail::Blender.

Member Data Documentation

UMat cv::detail::Blender::dst_
protectedinherited
UMat cv::detail::Blender::dst_mask_
protectedinherited
Rect cv::detail::Blender::dst_roi_
protectedinherited

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