OpenCV for Unity 2.6.4
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.
Loading...
Searching...
No Matches
OpenCVForUnity.PhotoModule.MergeMertens Class Reference

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

Public Member Functions

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

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.PhotoModule.MergeExposures
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- 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]

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

◆ process() [2/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.

◆ 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: