opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

FeatherBlender Class Reference

FeatherBlender Class Reference
[Image Blenders]

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

#include <blenders.hpp>

Inherits cv::detail::Blender.

Public Member Functions

void prepare (Rect dst_roi)
void feed (InputArray img, InputArray mask, Point tl)
 Processes the image.
void blend (InputOutputArray dst, InputOutputArray dst_mask)
 Blends and returns the final pano.
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.
void prepare (const std::vector< Point > &corners, const std::vector< Size > &sizes)
 Prepares the blender for blending.

Detailed Description

Simple blender which mixes images at its borders.

Definition at line 95 of file blenders.hpp.


Member Function Documentation

void blend ( InputOutputArray  dst,
InputOutputArray  dst_mask 
) [virtual]

Blends and returns the final pano.

Parameters:
dstFinal pano
dst_maskFinal pano mask

Reimplemented from Blender.

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.

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

void feed ( InputArray  img,
InputArray  mask,
Point  tl 
) [virtual]

Processes the image.

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

Reimplemented from Blender.

void 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 Blender.

void 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