Class MergeMertens
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
floatcontrast measure weight.
saturationWeight
floatsaturation measure weight
exposureWeight
floatwell-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
IInputArrayVector of input images
dst
IOutputArrayResult image