本節描述了高動態範圍成像演算法,即色調對映、曝光對齊、多重曝光相機校準和曝光融合。
|
| 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,每個通道的適應級別相同。 |