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

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

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

Inheritance diagram for cv::detail::BlocksGainCompensator:
Collaboration diagram for cv::detail::BlocksGainCompensator:

Public Types

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

Public Member Functions

 BlocksGainCompensator (int bl_width=32, int bl_height=32)
 
 BlocksGainCompensator (int bl_width, int bl_height, 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
 
Size getBlockSize () const
 
void getMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
int getNrFeeds ()
 
int getNrGainsFilteringIterations () const
 
bool getUpdateGain ()
 
void setBlockSize (int width, int height)
 
void setBlockSize (Size size)
 
void setMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
void setNrFeeds (int nr_feeds)
 
void setNrGainsFilteringIterations (int nr_iterations)
 
void setUpdateGain (bool b)
 

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 block intensities, see [96] for details.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
NO 
GAIN 
GAIN_BLOCKS 
CHANNELS 
CHANNELS_BLOCKS 

Constructor & Destructor Documentation

◆ BlocksGainCompensator() [1/2]

cv::detail::BlocksGainCompensator::BlocksGainCompensator ( int  bl_width = 32,
int  bl_height = 32 
)
inline

◆ BlocksGainCompensator() [2/2]

cv::detail::BlocksGainCompensator::BlocksGainCompensator ( int  bl_width,
int  bl_height,
int  nr_feeds 
)
inline

References CV_OVERRIDE.

Member Function Documentation

◆ apply()

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

Compensate exposure in the specified image.

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

Reimplemented from cv::detail::BlocksCompensator.

References cv::detail::BlocksCompensator::apply(), and cv::gapi::mask().

Here is the call graph for this function:

◆ 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::BlocksGainCompensator::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.

Reimplemented from cv::detail::BlocksCompensator.

◆ getBlockSize()

Size cv::detail::BlocksCompensator::getBlockSize ( ) const
inlineinherited

◆ getMatGains()

void cv::detail::BlocksGainCompensator::getMatGains ( std::vector< Mat > &  umv)
inlinevirtual

Reimplemented from cv::detail::BlocksCompensator.

References cv::detail::BlocksCompensator::getMatGains().

Here is the call graph for this function:

◆ getNrFeeds()

int cv::detail::BlocksCompensator::getNrFeeds ( )
inlineinherited

◆ getNrGainsFilteringIterations()

int cv::detail::BlocksCompensator::getNrGainsFilteringIterations ( ) const
inlineinherited

◆ getUpdateGain()

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

◆ setBlockSize() [1/2]

void cv::detail::BlocksCompensator::setBlockSize ( int  width,
int  height 
)
inlineinherited

◆ setBlockSize() [2/2]

void cv::detail::BlocksCompensator::setBlockSize ( Size  size)
inlineinherited

References cv::Size_< _Tp >::height, cv::detail::BlocksCompensator::setBlockSize(), and cv::Size_< _Tp >::width.

Referenced by cv::detail::BlocksCompensator::setBlockSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMatGains()

void cv::detail::BlocksGainCompensator::setMatGains ( std::vector< Mat > &  umv)
inlinevirtual

Reimplemented from cv::detail::BlocksCompensator.

References cv::detail::BlocksCompensator::setMatGains().

Here is the call graph for this function:

◆ setNrFeeds()

void cv::detail::BlocksCompensator::setNrFeeds ( int  nr_feeds)
inlineinherited

◆ setNrGainsFilteringIterations()

void cv::detail::BlocksCompensator::setNrGainsFilteringIterations ( int  nr_iterations)
inlineinherited

◆ setUpdateGain()

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

Member Data Documentation

◆ updateGain

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

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