OpenCV for Unity  2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
OpenCVForUnity.PhotoModule.MergeMertens Class Reference

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

Inheritance diagram for OpenCVForUnity.PhotoModule.MergeMertens:
OpenCVForUnity.PhotoModule.MergeExposures OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

override void process (List< Mat > src, Mat dst, Mat times, Mat response)
 Merges images. More...
 
void process (List< Mat > src, Mat dst)
 Short version of process, that doesn't take extra arguments. More...
 
float getContrastWeight ()
 
void setContrastWeight (float contrast_weiht)
 
float getSaturationWeight ()
 
void setSaturationWeight (float saturation_weight)
 
float getExposureWeight ()
 
void setExposureWeight (float exposure_weight)
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
void save (string filename)
 
virtual string getDefaultName ()
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new MergeMertens __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.PhotoModule.MergeExposures
static new MergeExposures __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

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

◆ __fromPtr__()

static new MergeMertens OpenCVForUnity.PhotoModule.MergeMertens.__fromPtr__ ( IntPtr  addr)
static

◆ Dispose()

override void OpenCVForUnity.PhotoModule.MergeMertens.Dispose ( bool  disposing)
protectedvirtual

◆ getContrastWeight()

float OpenCVForUnity.PhotoModule.MergeMertens.getContrastWeight ( )

◆ getExposureWeight()

float OpenCVForUnity.PhotoModule.MergeMertens.getExposureWeight ( )

◆ getSaturationWeight()

float OpenCVForUnity.PhotoModule.MergeMertens.getSaturationWeight ( )

◆ process() [1/2]

override void OpenCVForUnity.PhotoModule.MergeMertens.process ( List< Mat src,
Mat  dst,
Mat  times,
Mat  response 
)
virtual

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.

Reimplemented from OpenCVForUnity.PhotoModule.MergeExposures.

◆ process() [2/2]

void OpenCVForUnity.PhotoModule.MergeMertens.process ( List< Mat src,
Mat  dst 
)

Short version of process, that doesn't take extra arguments.

Parameters
srcvector of input images
dstresult image

◆ setContrastWeight()

void OpenCVForUnity.PhotoModule.MergeMertens.setContrastWeight ( float  contrast_weiht)

◆ setExposureWeight()

void OpenCVForUnity.PhotoModule.MergeMertens.setExposureWeight ( float  exposure_weight)

◆ setSaturationWeight()

void OpenCVForUnity.PhotoModule.MergeMertens.setSaturationWeight ( float  saturation_weight)

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