Table of Contents

Class MergeMertens

Namespace
Emgu.CV
Assembly
Emgu.CV.dll

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.

public class MergeMertens : MergeExposures, IDisposable
Inheritance
MergeMertens
Implements
Inherited Members

Constructors

MergeMertens(float, float, float)

Creates MergeMertens object.

public MergeMertens(float contrastWeight = 1, float saturationWeight = 1, float exposureWeight = 0)

Parameters

contrastWeight float

contrast measure weight.

saturationWeight float

saturation measure weight

exposureWeight float

well-exposedness measure weight

Methods

DisposeObject()

Release the unmanaged memory associated with this MergeMertens object

protected override void DisposeObject()

Process(IInputArray, IOutputArray)

Merges images.

public void Process(IInputArray src, IOutputArray dst)

Parameters

src IInputArray

Vector of input images

dst IOutputArray

Result image