class cv::detail::PairwiseSeamFinder

Overview

Base class for all pairwise seam estimators. Moreā€¦

#include <seam_finders.hpp>

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

    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();
};

// direct descendants

class VoronoiSeamFinder;

Inherited Members

public:
    // methods

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

Detailed Documentation

Base class for all pairwise seam estimators.

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
virtual
void
findInPair(
    size_t first,
    size_t second,
    Rect roi
    ) = 0

Resolves masks intersection of two specified images in the given ROI.

Parameters:

first First image index
second Second image index
roi Region of interest