class cv::detail::VoronoiSeamFinder

Overview

Voronoi diagram-based seam estimator. Moreā€¦

#include <seam_finders.hpp>

class VoronoiSeamFinder: public cv::detail::PairwiseSeamFinder
{
public:
    // methods

    virtual
    void
    find(
        const std::vector<UMat>& src,
        const std::vector<Point>& corners,
        std::vector<UMat>& masks
        );

    virtual
    void
    find(
        const std::vector<Size>& size,
        const std::vector<Point>& corners,
        std::vector<UMat>& masks
        );
};

Inherited Members

public:
    // methods

    virtual
    void
    find(
        const std::vector<UMat>& src,
        const std::vector<Point>& corners,
        std::vector<UMat>& masks
        ) = 0;

    virtual
    void
    find(
        const std::vector<UMat>& src,
        const std::vector<Point>& corners,
        std::vector<UMat>& masks
        );

protected:
    // fields

    std::vector<Point> corners_;
    std::vector<UMat> images_;
    std::vector<UMat> masks_;
    std::vector<Size> sizes_;

    // methods

    virtual
    void
    findInPair(
        size_t first,
        size_t second,
        Rect roi
        ) = 0;

    void
    run();

Detailed Documentation

Voronoi diagram-based seam estimator.

Methods

virtual
void
find(
    const std::vector<UMat>& src,
    const std::vector<Point>& corners,
    std::vector<UMat>& masks
    )

Estimates seams.

Parameters:

src Source images
corners Source image top-left corners
masks Source image masks to update