OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::MergeMertens 类参考抽象类

像素使用对比度、饱和度和曝光度进行加权,然后使用拉普拉斯金字塔将图像组合在一起。 更多...

#include <opencv2/photo.hpp>

cv::MergeMertens 的协作图

公共成员函数

virtual float getContrastWeight () const =0
 
virtual float getExposureWeight () const =0
 
virtual float getSaturationWeight () const =0
 
virtual void process (InputArrayOfArrays src, OutputArray dst)=0
 process 的简短版本,不需要额外的参数。
 
virtual void process (InputArrayOfArrays src, OutputArray dst, InputArray times, InputArray response) CV_OVERRIDE=0
 合并图像。
 
virtual void setContrastWeight (float contrast_weiht)=0
 
virtual void setExposureWeight (float exposure_weight)=0
 
virtual void setSaturationWeight (float saturation_weight)=0
 
- 从 cv::MergeExposures 继承的公共成员函数
- 从 cv::Algorithm 继承的公共成员函数
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 清除算法状态。
 
virtual bool empty () const
 如果 Algorithm 为空(例如,在最开始或读取不成功之后),则返回 true。
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 从文件存储中读取算法参数。
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 将算法参数存储到文件存储中。
 
void write (FileStorage &fs, const String &name) const
 

其他继承的成员

- 从 cv::Algorithm 继承的静态公共成员函数
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 从文件中加载算法。
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 从字符串加载算法。
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 从文件节点读取算法。
 
- 从 cv::Algorithm 继承的保护成员函数
void writeFormat (FileStorage &fs) const
 

详细描述

像素使用对比度、饱和度和曝光度进行加权,然后使用拉普拉斯金字塔将图像组合在一起。

生成的图像权重构造为对比度、饱和度和曝光度测量的加权平均值。

生成的图像不需要色调映射,可以通过乘以 255 转换为 8 位图像,但建议应用伽玛校正和/或线性色调映射。

有关更多信息,请参见 [191]

成员函数文档

◆ getContrastWeight()

virtual float cv::MergeMertens::getContrastWeight ( ) const
纯虚函数
Python
cv.MergeMertens.getContrastWeight() -> retval

◆ getExposureWeight()

virtual float cv::MergeMertens::getExposureWeight ( ) const
纯虚函数
Python
cv.MergeMertens.getExposureWeight() -> retval

◆ getSaturationWeight()

virtual float cv::MergeMertens::getSaturationWeight ( ) const
纯虚函数
Python
cv.MergeMertens.getSaturationWeight() -> retval

◆ process() [1/2]

virtual void cv::MergeMertens::process ( InputArrayOfArrays src,
OutputArray dst )
纯虚函数
Python
cv.MergeMertens.process(src, times, response[, dst]) -> dst
cv.MergeMertens.process(src[, dst]) -> dst

process 的简短版本,不需要额外的参数。

参数
src输入图像的向量
dst结果图像

◆ process() [2/2]

virtual void cv::MergeMertens::process ( InputArrayOfArrays src,
OutputArray dst,
InputArray times,
InputArray response )
纯虚函数
Python
cv.MergeMertens.process(src, times, response[, dst]) -> dst
cv.MergeMertens.process(src[, dst]) -> dst

合并图像。

参数
src输入图像的向量
dst结果图像
times每个图像的曝光时间值的向量
response具有每个像素值的逆相机响应函数的 256x1 矩阵,它应具有与图像相同的通道数。

实现 cv::MergeExposures

◆ setContrastWeight()

virtual void cv::MergeMertens::setContrastWeight ( float contrast_weiht)
纯虚函数
Python
cv.MergeMertens.setContrastWeight(contrast_weiht) ->

◆ setExposureWeight()

virtual void cv::MergeMertens::setExposureWeight ( float exposure_weight)
纯虚函数
Python
cv.MergeMertens.setExposureWeight(exposure_weight) ->

◆ setSaturationWeight()

virtual void cv::MergeMertens::setSaturationWeight ( float saturation_weight)
纯虚函数
Python
cv.MergeMertens.setSaturationWeight(saturation_weight) ->

此类文档由以下文件生成