Simple blender which mixes images at its borders. More...
#include "blenders.hpp"
Public Types | |
enum | { NO, FEATHER, MULTI_BAND } |
Public Member Functions | |
FeatherBlender (float sharpness=0.02f) | |
void | blend (InputOutputArray dst, InputOutputArray dst_mask) |
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) |
Processes the image. More... | |
void | prepare (const std::vector< Point > &corners, const std::vector< Size > &sizes) |
Prepares the blender for blending. More... | |
void | prepare (Rect dst_roi) |
void | setSharpness (float val) |
float | sharpness () const |
Static Public Member Functions | |
static Ptr< Blender > | createDefault (int type, bool try_gpu=false) |
Protected Attributes | |
UMat | dst_ |
UMat | dst_mask_ |
Rect | dst_roi_ |
Simple blender which mixes images at its borders.
|
virtual |
Blends and returns the final pano.
dst | Final pano |
dst_mask | Final pano mask |
Reimplemented from cv::detail::Blender.
|
staticinherited |
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.
|
virtual |
Processes the image.
img | Source image |
mask | Source image mask |
tl | Source image top-left corners |
Reimplemented from cv::detail::Blender.
|
inherited |
Prepares the blender for blending.
corners | Source images top-left corners |
sizes | Source image sizes |
|
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.
|
inline |
|
inline |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |