Package org.opencv.photo
Class MergeMertens
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.photo.MergeExposures
- 
- org.opencv.photo.MergeMertens
 
 
 
- 
 public class MergeMertens extends MergeExposures 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 CITE: MK07 .
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedMergeMertens(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MergeMertens__fromPtr__(long addr)protected voidfinalize()floatgetContrastWeight()floatgetExposureWeight()floatgetSaturationWeight()voidprocess(java.util.List<Mat> src, Mat dst)Short version of process, that doesn't take extra arguments.voidprocess(java.util.List<Mat> src, Mat dst, Mat times, Mat response)Merges images.voidsetContrastWeight(float contrast_weiht)voidsetExposureWeight(float exposure_weight)voidsetSaturationWeight(float saturation_weight)- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static MergeMertens __fromPtr__(long addr) 
 - 
processpublic void process(java.util.List<Mat> src, Mat dst, Mat times, Mat response) Description copied from class:MergeExposuresMerges images.- Overrides:
- processin class- MergeExposures
- Parameters:
- 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.
 
 - 
processpublic void process(java.util.List<Mat> src, Mat dst) Short version of process, that doesn't take extra arguments.- Parameters:
- src- vector of input images
- dst- result image
 
 - 
getContrastWeightpublic float getContrastWeight() 
 - 
setContrastWeightpublic void setContrastWeight(float contrast_weiht) 
 - 
getSaturationWeightpublic float getSaturationWeight() 
 - 
setSaturationWeightpublic void setSaturationWeight(float saturation_weight) 
 - 
getExposureWeightpublic float getExposureWeight() 
 - 
setExposureWeightpublic void setExposureWeight(float exposure_weight) 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- MergeExposures
- Throws:
- java.lang.Throwable
 
 
- 
 
-