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::GainCompensator Class Reference

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

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

Inheritance diagram for cv::detail::GainCompensator:
Collaboration diagram for cv::detail::GainCompensator:

Public Types

enum  {
  NO,
  GAIN,
  GAIN_BLOCKS,
  CHANNELS,
  CHANNELS_BLOCKS
}
 

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. More...
 
void feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< UMat > &masks)
 
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 ()
 
bool getUpdateGain ()
 
void setMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
void setNrFeeds (int nr_feeds)
 
void setUpdateGain (bool b)
 
void singleFeed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks)
 

Static Public Member Functions

static Ptr< ExposureCompensatorcreateDefault (int type)
 

Protected Attributes

bool updateGain
 

Detailed Description

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

Examples:
samples/cpp/stitching_detailed.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NO 
GAIN 
GAIN_BLOCKS 
CHANNELS 
CHANNELS_BLOCKS 

Constructor & Destructor Documentation

◆ GainCompensator() [1/2]

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

◆ GainCompensator() [2/2]

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

References CV_OUT, CV_OVERRIDE, CV_WRAP, and cv::gapi::mask().

Here is the call graph for this function:

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.

◆ createDefault()

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

◆ feed() [1/2]

void cv::detail::ExposureCompensator::feed ( const std::vector< Point > &  corners,
const std::vector< UMat > &  images,
const std::vector< UMat > &  masks 
)
inherited
Parameters
cornersSource image top-left corners
imagesSource images
masksImage masks to update (second value in pair specifies the value which should be used to detect where image is)

◆ feed() [2/2]

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

◆ getUpdateGain()

bool cv::detail::ExposureCompensator::getUpdateGain ( )
inlineinherited

◆ 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

◆ setUpdateGain()

void cv::detail::ExposureCompensator::setUpdateGain ( bool  b)
inlineinherited

◆ singleFeed()

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

Member Data Documentation

◆ updateGain

bool cv::detail::ExposureCompensator::updateGain
protectedinherited

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