OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::detail::FeatherBlender Class Reference

Simple blender which mixes images at its borders. More...

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

Inheritance diagram for cv::detail::FeatherBlender:
Collaboration diagram for cv::detail::FeatherBlender:

Public Types

enum  {
  NO,
  FEATHER,
  MULTI_BAND
}
 

Public Member Functions

 FeatherBlender (float sharpness=0.02f)
 
void blend (InputOutputArray dst, InputOutputArray dst_mask) CV_OVERRIDE
 Blends and returns the final pano. More...
 
Rect createWeightMaps (const std::vector< UMat > &masks, const std::vector< Point > &corners, std::vector< UMat > &weight_maps)
 Creates weight maps for fixed set of source images by their masks and top-left corners. More...
 
void feed (InputArray img, InputArray mask, Point tl) CV_OVERRIDE
 Processes the image. More...
 
virtual void prepare (const std::vector< Point > &corners, const std::vector< Size > &sizes)
 Prepares the blender for blending. More...
 
void prepare (Rect dst_roi) CV_OVERRIDE
 
void setSharpness (float val)
 
float sharpness () const
 

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

Simple blender which mixes images at its borders.

Examples:
samples/cpp/stitching_detailed.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NO 
FEATHER 
MULTI_BAND 

Member Function Documentation

◆ blend()

void cv::detail::FeatherBlender::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.

◆ createDefault()

static Ptr<Blender> cv::detail::Blender::createDefault ( int  type,
bool  try_gpu = false 
)
staticinherited

◆ createWeightMaps()

Rect cv::detail::FeatherBlender::createWeightMaps ( const std::vector< UMat > &  masks,
const std::vector< Point > &  corners,
std::vector< UMat > &  weight_maps 
)

Creates weight maps for fixed set of source images by their masks and top-left corners.

Final image can be obtained by simple weighting of the source images.

◆ feed()

void cv::detail::FeatherBlender::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.

◆ prepare() [1/2]

virtual void cv::detail::Blender::prepare ( const std::vector< Point > &  corners,
const std::vector< Size > &  sizes 
)
virtualinherited

Prepares the blender for blending.

Parameters
cornersSource images top-left corners
sizesSource image sizes

◆ prepare() [2/2]

void cv::detail::FeatherBlender::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.

◆ setSharpness()

void cv::detail::FeatherBlender::setSharpness ( float  val)
inline
Examples:
samples/cpp/stitching_detailed.cpp.

References CV_IN_OUT, CV_OVERRIDE, CV_WRAP, and cv::gapi::mask().

Here is the call graph for this function:

◆ sharpness()

float cv::detail::FeatherBlender::sharpness ( ) const
inline

Member Data Documentation

◆ dst_

UMat cv::detail::Blender::dst_
protectedinherited

◆ dst_mask_

UMat cv::detail::Blender::dst_mask_
protectedinherited

◆ dst_roi_

Rect cv::detail::Blender::dst_roi_
protectedinherited

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