本节描述了高动态范围成像算法,即色调映射、曝光对齐、多重曝光相机校准和曝光融合。
|
| Ptr< AlignMTB > | cv::createAlignMTB (int max_bits=6, int exclude_range=4, bool cut=true) |
| | 创建 AlignMTB 对象。
|
| |
| Ptr< CalibrateDebevec > | cv::createCalibrateDebevec (int samples=70, float lambda=10.0f, bool random=false) |
| | 创建 CalibrateDebevec 对象。
|
| |
| Ptr< CalibrateRobertson > | cv::createCalibrateRobertson (int max_iter=30, float threshold=0.01f) |
| | 创建 CalibrateRobertson 对象。
|
| |
| Ptr< MergeDebevec > | cv::createMergeDebevec () |
| | 创建 MergeDebevec 对象。
|
| |
| Ptr< MergeMertens > | cv::createMergeMertens (float contrast_weight=1.0f, float saturation_weight=1.0f, float exposure_weight=0.0f) |
| | 创建 MergeMertens 对象。
|
| |
| Ptr< MergeRobertson > | cv::createMergeRobertson () |
| | 创建 MergeRobertson 对象。
|
| |
| Ptr< Tonemap > | cv::createTonemap (float gamma=1.0f) |
| | Creates simple linear mapper with gamma correction.
|
| |
| Ptr< TonemapDrago > | cv::createTonemapDrago (float gamma=1.0f, float saturation=1.0f, float bias=0.85f) |
| | 创建 TonemapDrago 对象。
|
| |
| Ptr< TonemapMantiuk > | cv::createTonemapMantiuk (float gamma=1.0f, float scale=0.7f, float saturation=1.0f) |
| | 创建 TonemapMantiuk 对象。
|
| |
| Ptr< TonemapReinhard > | cv::createTonemapReinhard (float gamma=1.0f, float intensity=0.0f, float light_adapt=1.0f, float color_adapt=0.0f) |
| | 创建 TonemapReinhard 对象。
|
| |
◆ 匿名枚举
◆ createAlignMTB()
| Ptr< AlignMTB > cv::createAlignMTB |
( |
int | max_bits = 6, |
|
|
int | exclude_range = 4, |
|
|
bool | cut = true ) |
| Python |
|---|
| cv.createAlignMTB( | [, max_bits[, exclude_range[, cut]]] | ) -> | retval |
#include <opencv2/photo.hpp>
创建 AlignMTB 对象。
- 参数
-
| max_bits | 各维度最大位移的以 2 为底的对数。值为 5 和 6 通常足够好(分别对应 31 和 63 像素位移)。 |
| exclude_range | 用于排除位图的范围,该位图用于抑制中值附近的噪声。 |
| 剪切 | 如果为 true,则剪切图像;否则,用零填充新区域。 |
◆ createCalibrateDebevec()
| Ptr< CalibrateDebevec > cv::createCalibrateDebevec |
( |
int | samples = 70, |
|
|
float | lambda = 10.0f, |
|
|
bool | random = false ) |
| Python |
|---|
| cv.createCalibrateDebevec( | [, samples[, lambda_[, random]]] | ) -> | retval |
◆ createCalibrateRobertson()
| Python |
|---|
| cv.createCalibrateRobertson( | [, max_iter[, threshold]] | ) -> | retval |
#include <opencv2/photo.hpp>
创建 CalibrateRobertson 对象。
- 参数
-
| max_iter | 高斯-赛德尔求解器最大迭代次数。 |
| RANSAC参数。它是点到像素中对极线的最大距离,超过此距离的点将被视为异常值,不用于计算最终的基本矩阵。它可以设置为1-3左右,具体取决于点定位的精度、图像分辨率和图像噪声。 | 最小化连续两个步骤结果之间的目标差值。 |
◆ createMergeDebevec()
| Python |
|---|
| cv.createMergeDebevec( | | ) -> | retval |
◆ createMergeMertens()
| Ptr< MergeMertens > cv::createMergeMertens |
( |
float | contrast_weight = 1.0f, |
|
|
float | saturation_weight = 1.0f, |
|
|
float | exposure_weight = 0.0f ) |
| Python |
|---|
| cv.createMergeMertens( | [, contrast_weight[, saturation_weight[, exposure_weight]]] | ) -> | retval |
◆ createMergeRobertson()
| Python |
|---|
| cv.createMergeRobertson( | | ) -> | retval |
◆ createTonemap()
| Ptr< Tonemap > cv::createTonemap |
( |
float | gamma = 1.0f | ) |
|
| Python |
|---|
| cv.createTonemap( | [, gamma] | ) -> | retval |
#include <opencv2/photo.hpp>
Creates simple linear mapper with gamma correction.
- 参数
-
| gamma | 伽马校正的正值。伽马值为 1.0 意味着没有校正,伽马值为 2.2f 适用于大多数显示器。通常,伽马值 > 1 会使图像变亮,伽马值 < 1 会使图像变暗。 |
◆ createTonemapDrago()
| Ptr< TonemapDrago > cv::createTonemapDrago |
( |
float | gamma = 1.0f, |
|
|
float | saturation = 1.0f, |
|
|
float | bias = 0.85f ) |
| Python |
|---|
| cv.createTonemapDrago( | [, gamma[, saturation[, bias]]] | ) -> | retval |
#include <opencv2/photo.hpp>
创建 TonemapDrago 对象。
- 参数
-
| gamma | 伽马校正的伽马值。请参阅 createTonemap |
| saturation | 正饱和度增强值。1.0 保留饱和度,大于 1 的值增加饱和度,小于 1 的值降低饱和度。 |
| bias | [0, 1] 范围内的偏置函数值。0.7 到 0.9 之间的值通常能提供最佳结果,默认值为 0.85。 |
◆ createTonemapMantiuk()
| Ptr< TonemapMantiuk > cv::createTonemapMantiuk |
( |
float | gamma = 1.0f, |
|
|
float | scale = 0.7f, |
|
|
float | saturation = 1.0f ) |
| Python |
|---|
| cv.createTonemapMantiuk( | [, gamma[, scale[, saturation]]] | ) -> | retval |
#include <opencv2/photo.hpp>
创建 TonemapMantiuk 对象。
- 参数
-
| gamma | 伽马校正的伽马值。请参阅 createTonemap |
| scale | 对比度缩放因子。HVS 响应乘以该参数,从而压缩动态范围。0.6 到 0.9 之间的值能产生最佳结果。 |
| saturation | 饱和度增强值。请参阅 createTonemapDrago |
◆ createTonemapReinhard()
| Ptr< TonemapReinhard > cv::createTonemapReinhard |
( |
float | gamma = 1.0f, |
|
|
float | intensity = 0.0f, |
|
|
float | light_adapt = 1.0f, |
|
|
float | color_adapt = 0.0f ) |
| Python |
|---|
| cv.createTonemapReinhard( | [, gamma[, intensity[, light_adapt[, color_adapt]]]] | ) -> | retval |
#include <opencv2/photo.hpp>
创建 TonemapReinhard 对象。
- 参数
-
| gamma | 伽马校正的伽马值。请参阅 createTonemap |
| intensity | 结果强度在 [-8, 8] 范围内。强度越大,结果越亮。 |
| light_adapt | 光适应在 [0, 1] 范围内。如果为 1,适应仅基于像素值;如果为 0,则为全局适应;否则,它是这两种情况的加权平均值。 |
| color_adapt | 色度适应在 [0, 1] 范围内。如果为 1,通道独立处理;如果为 0,每个通道的适应级别相同。 |