class cv::detail::GraphCutSeamFinder

Overview

Minimum graph cut-based seam estimator. See details in [44]. Moreā€¦

#include <seam_finders.hpp>

class GraphCutSeamFinder:
    public cv::detail::GraphCutSeamFinderBase,
    public cv::detail::SeamFinder
{
public:
    // construction

    GraphCutSeamFinder(
        int cost_type = COST_COLOR_GRAD,
        float terminal_cost = 10000.f,
        float bad_region_penalty = 1000.f
        );

    // methods

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

Inherited Members

public:
    // enums

    enum CostType;

    // methods

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

Detailed Documentation

Minimum graph cut-based seam estimator. See details in [44].

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