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.
|
Pixels are weighted using contrast, saturation and well-exposedness measures, than images are combined using laplacian pyramids. More...
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] |
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 | ( | ) |
|
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.
Short version of process, that doesn't take extra arguments.
src | vector of input images |
dst | result image |
void OpenCVForUnity.PhotoModule.MergeMertens.setContrastWeight | ( | float | contrast_weiht | ) |
void OpenCVForUnity.PhotoModule.MergeMertens.setExposureWeight | ( | float | exposure_weight | ) |
void OpenCVForUnity.PhotoModule.MergeMertens.setSaturationWeight | ( | float | saturation_weight | ) |