@Namespace(value="cv") public static class opencv_photo.MergeMertens extends opencv_photo.MergeExposures
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 \cite MK07 .
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_photo.MergeMertens(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getContrastWeight() |
float |
getExposureWeight() |
float |
getSaturationWeight() |
void |
process(opencv_core.MatVector src,
opencv_core.Mat dst)
\brief Short version of process, that doesn't take extra arguments.
|
void |
process(opencv_core.MatVector src,
opencv_core.Mat dst,
opencv_core.Mat times,
opencv_core.Mat response)
\brief Merges images.
|
void |
setContrastWeight(float contrast_weiht) |
void |
setExposureWeight(float exposure_weight) |
void |
setSaturationWeight(float saturation_weight) |
clear, empty, getDefaultName, position, read, save, save, writeaddress, asBuffer, asByteBuffer, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_photo.MergeMertens(Pointer p)
Pointer.Pointer(Pointer).public void process(@ByVal opencv_core.MatVector src, @ByVal opencv_core.Mat dst, @ByVal opencv_core.Mat times, @ByVal opencv_core.Mat response)
opencv_photo.MergeExposuresprocess in class opencv_photo.MergeExposuressrc - vector of input imagesdst - result imagetimes - vector of exposure time values for each imageresponse - 256x1 matrix with inverse camera response function for each pixel value, it should
have the same number of channels as images.public void process(@ByVal opencv_core.MatVector src, @ByVal opencv_core.Mat dst)
src - vector of input imagesdst - result imagepublic float getContrastWeight()
public void setContrastWeight(float contrast_weiht)
public float getSaturationWeight()
public void setSaturationWeight(float saturation_weight)
public float getExposureWeight()
public void setExposureWeight(float exposure_weight)
Copyright © 2016. All rights reserved.