OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::detail::BlocksGainCompensator クラス

画像ブロックの強度を調整することで露出に関連するアーティファクトを除去しようとする露出補正器。詳細は [285] を参照。 さらに...

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

Collaboration diagram for cv::detail::BlocksGainCompensator:

公開メンバ関数

 BlocksGainCompensator (int bl_width, int bl_height, int nr_feeds)
 
 BlocksGainCompensator (int bl_width=32, int bl_height=32)
 
void apply (int index, Point corner, InputOutputArray image, InputArray mask) CV_OVERRIDE
 指定した画像の露出を補正する。
 
void feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks) CV_OVERRIDE
 
void getMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
void setMatGains (std::vector< Mat > &umv) CV_OVERRIDE
 
- Public Member Functions inherited from cv::detail::BlocksCompensator
 BlocksCompensator (int bl_width=32, int bl_height=32, int nr_feeds=1)
 
Size getBlockSize () const
 
int getNrFeeds ()
 
int getNrGainsFilteringIterations () const
 
double getSimilarityThreshold () const
 
void setBlockSize (int width, int height)
 
void setBlockSize (Size size)
 
void setNrFeeds (int nr_feeds)
 
void setNrGainsFilteringIterations (int nr_iterations)
 
void setSimilarityThreshold (double similarity_threshold)
 
- Public Member Functions inherited from 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)
 

Additional Inherited Members

- Public Types inherited from cv::detail::ExposureCompensator
enum  {
  NO ,
  GAIN ,
  GAIN_BLOCKS ,
  CHANNELS ,
  CHANNELS_BLOCKS
}
 
- Static Public Member Functions inherited from cv::detail::ExposureCompensator
static Ptr< ExposureCompensatorcreateDefault (int type)
 
- Protected Member Functions inherited from cv::detail::BlocksCompensator
template<class Compensator >
void feedWithStrategy (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks)
 
- Protected Attributes inherited from cv::detail::ExposureCompensator
bool updateGain
 

詳細説明

画像ブロックの強度を調整することで露出に関連するアーティファクトを除去しようとする露出補正器。詳細は [285] を参照。

構築子と解体子の詳解

◆ BlocksGainCompensator() [1/2]

cv::detail::BlocksGainCompensator::BlocksGainCompensator ( int bl_width = 32,
int bl_height = 32 )
inline
Python:
cv.detail.BlocksGainCompensator([, bl_width[, bl_height]]) -> <detail_BlocksGainCompensator object>
cv.detail.BlocksGainCompensator(bl_width, bl_height, nr_feeds) -> <detail_BlocksGainCompensator object>

◆ BlocksGainCompensator() [2/2]

cv::detail::BlocksGainCompensator::BlocksGainCompensator ( int bl_width,
int bl_height,
int nr_feeds )
inline
Python:
cv.detail.BlocksGainCompensator([, bl_width[, bl_height]]) -> <detail_BlocksGainCompensator object>
cv.detail.BlocksGainCompensator(bl_width, bl_height, nr_feeds) -> <detail_BlocksGainCompensator object>

メンバ関数詳解

◆ apply()

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

指定した画像の露出を補正する。

引数
index画像インデックス
corner画像の左上隅
image処理対象の画像
mask画像マスク

cv::detail::BlocksCompensator から再実装されている。

◆ feed()

void cv::detail::BlocksGainCompensator::feed ( const std::vector< Point > & corners,
const std::vector< UMat > & images,
const std::vector< std::pair< UMat, uchar > > & masks )
virtual

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

cv::detail::ExposureCompensator を実装している。

◆ getMatGains()

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

cv::detail::BlocksCompensator から再実装されている。

◆ setMatGains()

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

cv::detail::BlocksCompensator から再実装されている。


このクラス詳解は次のファイルから抽出されました: