Exposure compensator which tries to remove exposure related artifacts by adjusting image block on each channel. More...
#include <opencv2/stitching/detail/exposure_compensate.hpp>
Public Types | |
enum | { NO, GAIN, GAIN_BLOCKS, CHANNELS, CHANNELS_BLOCKS } |
Public Member Functions | |
BlocksChannelsCompensator (int bl_width=32, int bl_height=32, int nr_feeds=1) | |
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< ExposureCompensator > | createDefault (int type) |
Protected Attributes | |
bool | updateGain |
Exposure compensator which tries to remove exposure related artifacts by adjusting image block on each channel.
|
inline |
References CV_OVERRIDE.
|
virtualinherited |
Compensate exposure in the specified image.
index | Image index |
corner | Image top-left corner |
image | Image to process |
mask | Image mask |
Implements cv::detail::ExposureCompensator.
Reimplemented in cv::detail::BlocksGainCompensator.
Referenced by cv::detail::BlocksGainCompensator::apply().
|
staticinherited |
|
inherited |
corners | Source image top-left corners |
images | Source images |
masks | Image masks to update (second value in pair specifies the value which should be used to detect where image is) |
|
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.
|
inlineinherited |
|
virtualinherited |
Reimplemented from cv::detail::ExposureCompensator.
Reimplemented in cv::detail::BlocksGainCompensator.
Referenced by cv::detail::BlocksGainCompensator::getMatGains().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
References cv::Size_< _Tp >::height, cv::detail::BlocksCompensator::setBlockSize(), and cv::Size_< _Tp >::width.
Referenced by cv::detail::BlocksCompensator::setBlockSize().
|
virtualinherited |
Reimplemented from cv::detail::ExposureCompensator.
Reimplemented in cv::detail::BlocksGainCompensator.
Referenced by cv::detail::BlocksGainCompensator::setMatGains().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |