SimpleWB (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.xphoto
Class SimpleWB
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.xphoto.WhiteBalancer
-
- org.opencv.xphoto.SimpleWB
-
public class SimpleWB extends WhiteBalancerA simple white balance algorithm that works by independently stretching each of the input image channels to the specified range. For increased robustness it ignores the top and bottom \(p\%\) of pixel values.