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.
|
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] |
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] .
|
static |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.PhotoModule.MergeExposures.
float OpenCVForUnity.PhotoModule.MergeMertens.getContrastWeight | ( | ) |
float OpenCVForUnity.PhotoModule.MergeMertens.getExposureWeight | ( | ) |
float OpenCVForUnity.PhotoModule.MergeMertens.getSaturationWeight | ( | ) |
Short version of process, that doesn't take extra arguments.
src | vector of input images |
dst | result image |
|
virtual |
Merges images.
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. |
Reimplemented from OpenCVForUnity.PhotoModule.MergeExposures.
void OpenCVForUnity.PhotoModule.MergeMertens.setContrastWeight | ( | float | contrast_weiht | ) |
void OpenCVForUnity.PhotoModule.MergeMertens.setExposureWeight | ( | float | exposure_weight | ) |
void OpenCVForUnity.PhotoModule.MergeMertens.setSaturationWeight | ( | float | saturation_weight | ) |