MergeMertens (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
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 MergeExposuresPixels 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 .