OpenCV  4.0.1
Open Source Computer Vision
Public Member Functions | List of all members
cv::detail::GainCompensator Class Reference

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

#include "exposure_compensate.hpp"

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

Public Member Functions

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< std::pair< UMat, uchar > > &masks) CV_OVERRIDE
 
std::vector< double > gains () const
 
void getMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
void setMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
- Public Member Functions inherited from cv::detail::ExposureCompensator
virtual ~ExposureCompensator ()
 
void feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< UMat > &masks)
 
bool getUpdateGain ()
 
void setUpdateGain (bool b)
 

Additional Inherited Members

- Public Types inherited from cv::detail::ExposureCompensator
enum  {
  NO,
  GAIN,
  GAIN_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 [27] and [223] for details.

Member Function Documentation

§ apply()

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

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
Python:
umv=cv.detail_GainCompensator.getMatGains([, umv])

Reimplemented from cv::detail::ExposureCompensator.

§ setMatGains()

void cv::detail::GainCompensator::setMatGains ( std::vector< Mat > &  umv)
virtual
Python:
None=cv.detail_GainCompensator.setMatGains(umv)

Reimplemented from cv::detail::ExposureCompensator.


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