OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::detail::GraphCutSeamFinder Class Reference

Minimum graph cut-based seam estimator. More...

#include <opencv2/stitching/detail/seam_finders.hpp>

Inheritance diagram for cv::detail::GraphCutSeamFinder:
Collaboration diagram for cv::detail::GraphCutSeamFinder:

Public Types

enum  {
  NO,
  VORONOI_SEAM,
  DP_SEAM
}
 
enum  CostType {
  COST_COLOR,
  COST_COLOR_GRAD
}
 

Public Member Functions

 GraphCutSeamFinder (int cost_type=COST_COLOR_GRAD, float terminal_cost=10000.f, float bad_region_penalty=1000.f)
 
 GraphCutSeamFinder (String cost_type, float terminal_cost=10000.f, float bad_region_penalty=1000.f)
 
 ~GraphCutSeamFinder ()
 
void find (const std::vector< UMat > &src, const std::vector< Point > &corners, std::vector< UMat > &masks) CV_OVERRIDE
 Estimates seams. More...
 

Static Public Member Functions

static Ptr< SeamFindercreateDefault (int type)
 

Detailed Description

Minimum graph cut-based seam estimator.

See details in [51] .

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NO 
VORONOI_SEAM 
DP_SEAM 

◆ CostType

Enumerator
COST_COLOR 
COST_COLOR_GRAD 

Constructor & Destructor Documentation

◆ GraphCutSeamFinder() [1/2]

cv::detail::GraphCutSeamFinder::GraphCutSeamFinder ( int  cost_type = COST_COLOR_GRAD,
float  terminal_cost = 10000.f,
float  bad_region_penalty = 1000.f 
)

◆ GraphCutSeamFinder() [2/2]

cv::detail::GraphCutSeamFinder::GraphCutSeamFinder ( String  cost_type,
float  terminal_cost = 10000.f,
float  bad_region_penalty = 1000.f 
)

◆ ~GraphCutSeamFinder()

cv::detail::GraphCutSeamFinder::~GraphCutSeamFinder ( )

Member Function Documentation

◆ createDefault()

static Ptr<SeamFinder> cv::detail::SeamFinder::createDefault ( int  type)
staticinherited

◆ find()

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

Estimates seams.

Parameters
srcSource images
cornersSource image top-left corners
masksSource image masks to update

Implements cv::detail::SeamFinder.


The documentation for this class was generated from the following file: