Class cv::MergeMertens#

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

Collaboration diagram for cv::MergeMertens:

Public Member Functions#

Public Member Functions inherited from cv::MergeExposures
Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

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 images

  • dst — 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 images

  • dst — result image

  • times — vector of exposure time values for each image

  • response — 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: