OpenCV 4.11.0
开源计算机视觉库
加载中…
搜索中…
无匹配项
cv::detail::BlocksCompensator 类参考

曝光补偿器,尝试通过调整图像块来去除曝光相关的伪影。更多…

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

cv::detail::BlocksCompensator 的协作图

公共成员函数

 BlocksCompensator (int bl_width=32, int bl_height=32, int nr_feeds=1)
 
void apply (int index, Point corner, InputOutputArray image, InputArray mask) CV_OVERRIDE
 补偿指定图像中的曝光。
 
Size getBlockSize () const
 
void getMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
int getNrFeeds ()
 
int getNrGainsFilteringIterations () const
 
double getSimilarityThreshold () const
 
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 setSimilarityThreshold (double similarity_threshold)
 
- 继承自 cv::detail::ExposureCompensator 的公共成员函数
 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)
 

保护成员函数

template<class Compensator >
void feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks)
 

其他继承成员

- 继承自 cv::detail::ExposureCompensator 的公共类型
枚举 {
  NO ,
  GAIN ,
  GAIN_BLOCKS ,
  CHANNELS ,
  CHANNELS_BLOCKS
}
 
- 继承自 cv::detail::ExposureCompensator 的静态公共成员函数
static Ptr< ExposureCompensatorcreateDefault (int type)
 
- 继承自 cv::detail::ExposureCompensator 的保护属性
bool updateGain
 

详细描述

曝光补偿器,尝试通过调整图像块来去除曝光相关的伪影。

示例
samples/cpp/stitching_detailed.cpp.

构造函数和析构函数文档

◆ BlocksCompensator()

cv::detail::BlocksCompensator::BlocksCompensator ( int bl_width = 32,
int bl_height = 32,
int nr_feeds = 1 )
inline

成员函数文档

◆ apply()

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

补偿指定图像中的曝光。

参数
index图像索引
corner图像左上角坐标
image要处理的图像
mask图像掩码

实现 cv::detail::ExposureCompensator

cv::detail::BlocksGainCompensator 中重新实现。

◆ feed()

template<class Compensator >
void cv::detail::BlocksCompensator::feed ( const std::vector< Point > & corners,
const std::vector< UMat > & images,
const std::vector< std::pair< UMat, uchar > > & masks )
protectedvirtual

这是一个重载的成员函数,为了方便提供。它与上面的函数的区别仅仅在于它接受的参数。

实现 cv::detail::ExposureCompensator

cv::detail::BlocksGainCompensator 中重新实现。

◆ getBlockSize()

Size cv::detail::BlocksCompensator::getBlockSize ( ) const
inline
Python
cv.detail.BlocksCompensator.getBlockSize() -> retval

◆ getMatGains()

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

◆ getNrFeeds()

int cv::detail::BlocksCompensator::getNrFeeds ( )
inline
Python
cv.detail.BlocksCompensator.getNrFeeds() -> retval

◆ getNrGainsFilteringIterations()

int cv::detail::BlocksCompensator::getNrGainsFilteringIterations ( ) const
inline
Python
cv.detail.BlocksCompensator.getNrGainsFilteringIterations() -> retval

◆ getSimilarityThreshold()

double cv::detail::BlocksCompensator::getSimilarityThreshold ( ) const
inline
Python
cv.detail.BlocksCompensator.getSimilarityThreshold() -> retval

◆ setBlockSize() [1/2]

void cv::detail::BlocksCompensator::setBlockSize ( int width,
int height )
inline
Python
cv.detail.BlocksCompensator.setBlockSize(width, height) ->
cv.detail.BlocksCompensator.setBlockSize(size) ->

◆ setBlockSize() [2/2]

void cv::detail::BlocksCompensator::setBlockSize ( Size size)
inline
Python
cv.detail.BlocksCompensator.setBlockSize(width, height) ->
cv.detail.BlocksCompensator.setBlockSize(size) ->
以下是此函数的调用图

◆ setMatGains()

void cv::detail::BlocksCompensator::setMatGains ( std::vector< Mat > & umv)
virtual
Python
cv.detail.BlocksCompensator.setMatGains(umv) ->

◆ setNrFeeds()

void cv::detail::BlocksCompensator::setNrFeeds ( int nr_feeds)
inline
Python
cv.detail.BlocksCompensator.setNrFeeds(nr_feeds) ->

◆ setNrGainsFilteringIterations()

void cv::detail::BlocksCompensator::setNrGainsFilteringIterations ( int nr_iterations)
inline
Python
cv.detail.BlocksCompensator.setNrGainsFilteringIterations(nr_iterations) ->

◆ setSimilarityThreshold()

void cv::detail::BlocksCompensator::setSimilarityThreshold ( double similarity_threshold)
inline
Python
cv.detail.BlocksCompensator.setSimilarityThreshold(similarity_threshold) ->

此类的文档是从以下文件生成的: