OpenCV  4.1.0
Open Source Computer Vision
Classes | Public Types | Public Member Functions | List of all members
cv::detail::DpSeamFinder Class Reference

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

Inheritance diagram for cv::detail::DpSeamFinder:
cv::detail::SeamFinder

Public Types

enum  CostFunction {
  COLOR,
  COLOR_GRAD
}
 
- Public Types inherited from cv::detail::SeamFinder
enum  {
  NO,
  VORONOI_SEAM,
  DP_SEAM
}
 

Public Member Functions

 DpSeamFinder (CostFunction costFunc=COLOR)
 
 DpSeamFinder (String costFunc)
 
CostFunction costFunction () const
 
virtual void find (const std::vector< UMat > &src, const std::vector< Point > &corners, std::vector< UMat > &masks) CV_OVERRIDE
 Estimates seams.
 
void setCostFunction (CostFunction val)
 
void setCostFunction (String val)
 
- Public Member Functions inherited from cv::detail::SeamFinder
virtual ~SeamFinder ()
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::detail::SeamFinder
static Ptr< SeamFindercreateDefault (int type)
 

Member Enumeration Documentation

Enumerator
COLOR 
COLOR_GRAD 

Constructor & Destructor Documentation

cv::detail::DpSeamFinder::DpSeamFinder ( CostFunction  costFunc = COLOR)
Python:
<detail_DpSeamFinder object>=cv.detail_DpSeamFinder(costFunc)
cv::detail::DpSeamFinder::DpSeamFinder ( String  costFunc)
Python:
<detail_DpSeamFinder object>=cv.detail_DpSeamFinder(costFunc)

Member Function Documentation

CostFunction cv::detail::DpSeamFinder::costFunction ( ) const
inline
virtual void cv::detail::DpSeamFinder::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.

void cv::detail::DpSeamFinder::setCostFunction ( CostFunction  val)
inline
Python:
None=cv.detail_DpSeamFinder.setCostFunction(val)
void cv::detail::DpSeamFinder::setCostFunction ( String  val)
Python:
None=cv.detail_DpSeamFinder.setCostFunction(val)

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