Loading...
Searching...
No Matches
cv::detail::GainCompensator Class Reference

Exposure compensator which tries to remove exposure related artifacts by adjusting image intensities, see [BL07] and [WJ10] for details. More...

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

Inheritance diagram for cv::detail::GainCompensator:
cv::detail::ExposureCompensator

Public Member Functions

 GainCompensator ()
 
 GainCompensator (int nr_feeds)
 
void apply (int index, Point corner, InputOutputArray image, InputArray mask) CV_OVERRIDE
 Compensate exposure in the specified image.
 
void feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks) CV_OVERRIDE
 
std::vector< double > gains () const
 
void getMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
int getNrFeeds ()
 
double getSimilarityThreshold () const
 
void prepareSimilarityMask (const std::vector< Point > &corners, const std::vector< UMat > &images)
 
void setMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
void setNrFeeds (int nr_feeds)
 
void setSimilarityThreshold (double similarity_threshold)
 
void singleFeed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks)
 
- Public Member Functions inherited from cv::detail::ExposureCompensator
 ExposureCompensator ()
 
virtual ~ExposureCompensator ()
 
virtual void apply (int index, Point corner, InputOutputArray image, InputArray mask)=0
 Compensate exposure in the specified image.
 
virtual void feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks)=0
 
void feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< UMat > &masks)
 
virtual void getMatGains (std::vector< Mat > &)
 
bool getUpdateGain ()
 
virtual void setMatGains (std::vector< Mat > &)
 
void setUpdateGain (bool b)
 

Additional Inherited Members

- Public Types inherited from cv::detail::ExposureCompensator
enum  {
  NO ,
  GAIN ,
  GAIN_BLOCKS ,
  CHANNELS ,
  CHANNELS_BLOCKS
}
 
- Static Public Member Functions inherited from cv::detail::ExposureCompensator
static Ptr< ExposureCompensatorcreateDefault (int type)
 
- Protected Attributes inherited from cv::detail::ExposureCompensator
bool updateGain
 

Detailed Description

Exposure compensator which tries to remove exposure related artifacts by adjusting image intensities, see [BL07] and [WJ10] for details.

Examples
samples/cpp/stitching_detailed.cpp.

Constructor & Destructor Documentation

◆ GainCompensator() [1/2]

cv::detail::GainCompensator::GainCompensator ( )
inline

◆ GainCompensator() [2/2]

cv::detail::GainCompensator::GainCompensator ( int  nr_feeds)
inline

Member Function Documentation

◆ apply()

void cv::detail::GainCompensator::apply ( int  index,
Point  corner,
InputOutputArray  image,
InputArray  mask 
)
virtual

Compensate exposure in the specified image.

Parameters
indexImage index
cornerImage top-left corner
imageImage to process
maskImage mask

Implements cv::detail::ExposureCompensator.

◆ feed()

void cv::detail::GainCompensator::feed ( const std::vector< Point > &  corners,
const std::vector< UMat > &  images,
const std::vector< std::pair< UMat, uchar > > &  masks 
)
virtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Implements cv::detail::ExposureCompensator.

◆ gains()

std::vector< double > cv::detail::GainCompensator::gains ( ) const

◆ getMatGains()

void cv::detail::GainCompensator::getMatGains ( std::vector< Mat > &  umv)
virtual

Reimplemented from cv::detail::ExposureCompensator.

◆ getNrFeeds()

int cv::detail::GainCompensator::getNrFeeds ( )
inline

◆ getSimilarityThreshold()

double cv::detail::GainCompensator::getSimilarityThreshold ( ) const
inline

◆ prepareSimilarityMask()

void cv::detail::GainCompensator::prepareSimilarityMask ( const std::vector< Point > &  corners,
const std::vector< UMat > &  images 
)

◆ setMatGains()

void cv::detail::GainCompensator::setMatGains ( std::vector< Mat > &  umv)
virtual

Reimplemented from cv::detail::ExposureCompensator.

◆ setNrFeeds()

void cv::detail::GainCompensator::setNrFeeds ( int  nr_feeds)
inline

◆ setSimilarityThreshold()

void cv::detail::GainCompensator::setSimilarityThreshold ( double  similarity_threshold)
inline

◆ singleFeed()

void cv::detail::GainCompensator::singleFeed ( const std::vector< Point > &  corners,
const std::vector< UMat > &  images,
const std::vector< std::pair< UMat, uchar > > &  masks 
)

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