Class cv::MergeMertens#
Pixels are weighted using contrast, saturation and well-exposedness measures, than images are combined using laplacian pyramids. View details
#include <opencv2/photo.hpp>Collaboration diagram for cv::MergeMertens:
Public Member Functions#
Public Member Functions inherited from cv::MergeExposures
Return |
Name |
Description |
|---|---|---|
|
|
Merges images. |
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
Pixels are weighted using contrast, saturation and well-exposedness measures, than images are combined using laplacian pyramids.
The resulting image weight is constructed as weighted average of contrast, saturation and well-exposedness measures.
The resulting image doesn’t require tonemapping and can be converted to 8-bit image by multiplying by 255, but it’s recommended to apply gamma correction and/or linear tonemapping.
For more information see MK07 .
Member Function Documentation#
getContrastWeight()#
float cv::MergeMertens::getContrastWeight()
Python:
cv.MergeMertens.getContrastWeight() -> retval
getExposureWeight()#
float cv::MergeMertens::getExposureWeight()
Python:
cv.MergeMertens.getExposureWeight() -> retval
getSaturationWeight()#
float cv::MergeMertens::getSaturationWeight()
Python:
cv.MergeMertens.getSaturationWeight() -> retval
process()#
void cv::MergeMertens::process(
InputArrayOfArrays src,
OutputArray dst )
Python:
cv.MergeMertens.process(src, times, response[, dst]) -> dst
cv.MergeMertens.process(src[, dst]) -> dst
Short version of process, that doesn’t take extra arguments.
Parameters
src— vector of input imagesdst— result image
process()#
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
Merges images.
Parameters
src— vector of input imagesdst— result imagetimes— vector of exposure time values for each imageresponse— 256x1 matrix with inverse camera response function for each pixel value, it should have the same number of channels as images.
setContrastWeight()#
void cv::MergeMertens::setContrastWeight(float contrast_weiht)
Python:
cv.MergeMertens.setContrastWeight(contrast_weiht)
setExposureWeight()#
void cv::MergeMertens::setExposureWeight(float exposure_weight)
Python:
cv.MergeMertens.setExposureWeight(exposure_weight)
setSaturationWeight()#
void cv::MergeMertens::setSaturationWeight(float saturation_weight)
Python:
cv.MergeMertens.setSaturationWeight(saturation_weight)
Source file#
The documentation for this class was generated from the following file:
opencv2/photo.hpp