TonemapDurand (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.xphoto
Class TonemapDurand
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.photo.Tonemap
-
- org.opencv.xphoto.TonemapDurand
-
public class TonemapDurand extends TonemapThis algorithm decomposes image into two layers: base layer and detail layer using bilateral filter and compresses contrast of the base layer thus preserving all the details. This implementation uses regular bilateral filter from OpenCV. Saturation enhancement is possible as in cv::TonemapDrago. For more information see CITE: DD02 .