OpenCV  5.0.0alpha
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::detail::ExposureCompensator Class Referenceabstract

Base class for all exposure compensators. More...

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

Collaboration diagram for cv::detail::ExposureCompensator:

Public Types

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

Public Member Functions

 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)
 

Static Public Member Functions

static Ptr< ExposureCompensatorcreateDefault (int type)
 

Protected Attributes

bool updateGain
 

Detailed Description

Base class for all exposure compensators.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NO 
GAIN 
GAIN_BLOCKS 
CHANNELS 
CHANNELS_BLOCKS 

Constructor & Destructor Documentation

◆ ExposureCompensator()

cv::detail::ExposureCompensator::ExposureCompensator ( )
inline

◆ ~ExposureCompensator()

virtual cv::detail::ExposureCompensator::~ExposureCompensator ( )
inlinevirtual

Member Function Documentation

◆ apply()

virtual void cv::detail::ExposureCompensator::apply ( int index,
Point corner,
InputOutputArray image,
InputArray mask )
pure virtual
Python:
cv.detail.ExposureCompensator.apply(index, corner, image, mask) -> image

Compensate exposure in the specified image.

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

Implemented in cv::detail::BlocksCompensator, cv::detail::BlocksGainCompensator, cv::detail::ChannelsCompensator, cv::detail::GainCompensator, and cv::detail::NoExposureCompensator.

◆ createDefault()

static Ptr< ExposureCompensator > cv::detail::ExposureCompensator::createDefault ( int type)
static
Python:
cv.detail.ExposureCompensator.createDefault(type) -> retval
cv.detail.ExposureCompensator_createDefault(type) -> retval

◆ feed() [1/2]

virtual void cv::detail::ExposureCompensator::feed ( const std::vector< Point > & corners,
const std::vector< UMat > & images,
const std::vector< std::pair< UMat, uchar > > & masks )
pure virtual
Python:
cv.detail.ExposureCompensator.feed(corners, images, masks) -> None

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

Implemented in cv::detail::BlocksChannelsCompensator, cv::detail::BlocksCompensator, cv::detail::BlocksGainCompensator, cv::detail::ChannelsCompensator, cv::detail::GainCompensator, and cv::detail::NoExposureCompensator.

◆ feed() [2/2]

void cv::detail::ExposureCompensator::feed ( const std::vector< Point > & corners,
const std::vector< UMat > & images,
const std::vector< UMat > & masks )
Python:
cv.detail.ExposureCompensator.feed(corners, images, masks) -> None
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)

◆ getMatGains()

virtual void cv::detail::ExposureCompensator::getMatGains ( std::vector< Mat > & )
inlinevirtual
Python:
cv.detail.ExposureCompensator.getMatGains([, arg1]) -> arg1

◆ getUpdateGain()

bool cv::detail::ExposureCompensator::getUpdateGain ( )
inline
Python:
cv.detail.ExposureCompensator.getUpdateGain() -> retval

◆ setMatGains()

virtual void cv::detail::ExposureCompensator::setMatGains ( std::vector< Mat > & )
inlinevirtual
Python:
cv.detail.ExposureCompensator.setMatGains(arg1) -> None

◆ setUpdateGain()

void cv::detail::ExposureCompensator::setUpdateGain ( bool b)
inline
Python:
cv.detail.ExposureCompensator.setUpdateGain(b) -> None

Member Data Documentation

◆ updateGain

bool cv::detail::ExposureCompensator::updateGain
protected

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