OpenCV 4.12.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 )
保護

這是為方便起見提供的過載成員函式。它與上述函式的區別僅在於接受的引數。

實現自 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

cv::detail::ExposureCompensator 重新實現。

cv::detail::BlocksGainCompensator 中重新實現。

◆ 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) ->

cv::detail::ExposureCompensator 重新實現。

cv::detail::BlocksGainCompensator 中重新實現。

◆ 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) ->

此類的文件生成自以下檔案