LearningBasedWB (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.xphoto
Class LearningBasedWB
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.xphoto.WhiteBalancer
-
- org.opencv.xphoto.LearningBasedWB
-
public class LearningBasedWB extends WhiteBalancerMore sophisticated learning-based automatic white balance algorithm. As REF: GrayworldWB, this algorithm works by applying different gains to the input image channels, but their computation is a bit more involved compared to the simple gray-world assumption. More details about the algorithm can be found in CITE: Cheng2015 . To mask out saturated pixels this function uses only pixels that satisfy the following condition: \( \frac{\textrm{max}(R,G,B)}{\texttt{range_max_val}} < \texttt{saturation_thresh} \) Currently supports images of type REF: CV_8UC3 and REF: CV_16UC3.