OpenCV 4.10.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::MergeMertens Class Referenceabstract

Pixels are weighted using contrast, saturation and well-exposedness measures, than images are combined using laplacian pyramids. More...

#include <opencv2/photo.hpp>

Collaboration diagram for cv::MergeMertens:

Public Member Functions

virtual float getContrastWeight () const =0
 
virtual float getExposureWeight () const =0
 
virtual float getSaturationWeight () const =0
 
virtual void process (InputArrayOfArrays src, OutputArray dst)=0
 Short version of process, that doesn't take extra arguments.
 
virtual void process (InputArrayOfArrays src, OutputArray dst, InputArray times, InputArray response) CV_OVERRIDE=0
 Merges images.
 
virtual void setContrastWeight (float contrast_weiht)=0
 
virtual void setExposureWeight (float exposure_weight)=0
 
virtual void setSaturationWeight (float saturation_weight)=0
 
- Public Member Functions inherited from cv::MergeExposures
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (FileStorage &fs, const String &name) const
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

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 [189] .

Member Function Documentation

◆ getContrastWeight()

virtual float cv::MergeMertens::getContrastWeight ( ) const
pure virtual
Python:
cv.MergeMertens.getContrastWeight() -> retval

◆ getExposureWeight()

virtual float cv::MergeMertens::getExposureWeight ( ) const
pure virtual
Python:
cv.MergeMertens.getExposureWeight() -> retval

◆ getSaturationWeight()

virtual float cv::MergeMertens::getSaturationWeight ( ) const
pure virtual
Python:
cv.MergeMertens.getSaturationWeight() -> retval

◆ process() [1/2]

virtual void cv::MergeMertens::process ( InputArrayOfArrays src,
OutputArray dst )
pure virtual
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
srcvector of input images
dstresult image

◆ process() [2/2]

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

Merges images.

Parameters
srcvector of input images
dstresult image
timesvector of exposure time values for each image
response256x1 matrix with inverse camera response function for each pixel value, it should have the same number of channels as images.

Implements cv::MergeExposures.

◆ setContrastWeight()

virtual void cv::MergeMertens::setContrastWeight ( float contrast_weiht)
pure virtual
Python:
cv.MergeMertens.setContrastWeight(contrast_weiht) -> None

◆ setExposureWeight()

virtual void cv::MergeMertens::setExposureWeight ( float exposure_weight)
pure virtual
Python:
cv.MergeMertens.setExposureWeight(exposure_weight) -> None

◆ setSaturationWeight()

virtual void cv::MergeMertens::setSaturationWeight ( float saturation_weight)
pure virtual
Python:
cv.MergeMertens.setSaturationWeight(saturation_weight) -> None

The documentation for this class was generated from the following file: