class cv::detail::FeatherBlender

Overview

Simple blender which mixes images at its borders. Moreā€¦

#include <blenders.hpp>

class FeatherBlender: public cv::detail::Blender
{
public:
    // construction

    FeatherBlender(float sharpness = 0.02f);

    // methods

    virtual
    void
    blend(
        InputOutputArray dst,
        InputOutputArray dst_mask
        );

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

    virtual
    void
    feed(
        InputArray img,
        InputArray mask,
        Point tl
        );

    virtual
    void
    prepare(Rect dst_roi);

    void
    setSharpness(float val);

    float
    sharpness() const;
};

Inherited Members

public:
    // enums

    enum
    {
        NO,
        FEATHER,
        MULTI_BAND,
    };

    // methods

    virtual
    void
    blend(
        InputOutputArray dst,
        InputOutputArray dst_mask
        );

    virtual
    void
    feed(
        InputArray img,
        InputArray mask,
        Point tl
        );

    void
    prepare(
        const std::vector<Point>& corners,
        const std::vector<Size>& sizes
        );

    virtual
    void
    prepare(Rect dst_roi);

    static
    Ptr<Blender>
    createDefault(
        int type,
        bool try_gpu = false
        );

protected:
    // fields

    UMat dst_;
    UMat dst_mask_;
    Rect dst_roi_;

Detailed Documentation

Simple blender which mixes images at its borders.

Methods

virtual
void
blend(
    InputOutputArray dst,
    InputOutputArray dst_mask
    )

Blends and returns the final pano.

Parameters:

dst Final pano
dst_mask Final pano mask
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.

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

Processes the image.

Parameters:

img Source image
mask Source image mask
tl Source image top-left corners
virtual
void
prepare(Rect dst_roi)

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